Calculator: Principal complex logarithm

Enter the labelled inputs to calculate: Real part; Imaginary part (rad).

Real part
0
Imaginary part (rad)
1.570796327

How the calculation works

Log z=ln|z|+i Arg z; Arg z∈(−π,π]

Complex logarithm and exponential angles use radians. The logarithm is the principal branch with argument in (−π,π]. Roots are listed counterclockwise from the principal argument, with multiplicity. Zero to a nonpositive integer power and logarithm of zero are undefined.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

Log z=ln|z|+i Arg z; Arg z∈(−π,π]

What assumptions apply?

Complex logarithm and exponential angles use radians. The logarithm is the principal branch with argument in (−π,π]. Roots are listed counterclockwise from the principal argument, with multiplicity. Zero to a nonpositive integer power and logarithm of zero are undefined.

How precise are the displayed results?

Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently from the sources below. Last passed: .

# Inputs Expected result
1
Real part = 1
Imaginary part = 1
Real part: 0.3465735903
Imaginary part (rad): 0.7853981634
2
Real part = -3
Imaginary part = 4
Real part: 1.609437912
Imaginary part (rad): 2.214297436
3
Real part = 0.5
Imaginary part = -2
Real part: 0.7234594915
Imaginary part (rad): -1.325817664

Sources

How we test our calculators →

Also try:

Back to category →