amath  1.8.5
Simple command line calculator
clog10.c File Reference
#include "prim.h"
Include dependency graph for clog10.c:

Go to the source code of this file.

Functions

complex clog10 (complex z)
 Base 10 logarithmic value of complex number. More...
 

Function Documentation

◆ clog10()

complex clog10 ( complex  z)

Base 10 logarithmic value of complex number.

log z = log(z) / log(10)

More info is available at Wikipedia:
https://wikipedia.org/wiki/Complex_logarithm

Definition at line 41 of file clog10.c.

References cdiv(), clog(), and cpack().

Referenced by ComplexNumber::Log10().

42 {
43  complex teen = cpack(10.0, 0.0);
44  complex w = cdiv(clog(z), clog(teen));
45  return w;
46 }
complex cdiv(complex y, complex z)
Division of two complex numbers.
Definition: prim.c:159
Definition: mathi.h:48
complex cpack(double x, double y)
Pack two real numbers into a complex number.
Definition: prim.c:68
complex clog(complex z)
Natural logarithm of a complex number.
Definition: clog.c:42
Here is the call graph for this function:
Here is the caller graph for this function: