toms243, an Octave code which evaluates the logarithm of a complex value, by David Collens. This is a version of ACM TOMS algorithm 243.
The text of many ACM TOMS algorithms is available online through ACM: https://calgo.acm.org/ or NETLIB: https://www.netlib.org/toms/index.html.
The computer code and data files described and made available on this web page are distributed under the MIT license
toms243 is available in a C version and a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.
test_values, an Octave code which tabulates several values of a variety of special functions.