How to use this calculator
Calculate the principal complex logarithm using the modulus and principal argument of a+bi.
- Enter Real part of first number, Imaginary part of first number. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How Principal complex logarithm calculator works
Calculate the principal complex logarithm using the modulus and principal argument of a+bi.
Inputs and units
- Real part of first number: Real part a is the horizontal coordinate of the complex number.
- Imaginary part of first number: Imaginary part b is the vertical coordinate multiplying i.
Formula and method
Log(a+bi)=ln|a+bi|+i Arg(a+bi), where |a+bi|=√(a²+b²) and the principal argument is selected on the principal branch.
Worked example
For 2+3i, |z|=√13 and Arg(z)=atan2(3,2); ln(√13)+i atan2(3,2)≈1.28247+0.98279i.
Interpreting the result
The real part is the natural log of the magnitude; the imaginary part is the principal angle in radians.
Assumptions and limits
The complex logarithm is multivalued before choosing a branch. This tool returns one principal value and is undefined at z=0; branch cuts make values discontinuous across the selected argument boundary.
Sources and method
- Polar form supports complex arguments, logarithms, and nth roots through modulus and angle. OpenStax: polar form of complex numbers
Frequently asked questions
Why is the angle in radians?
The standard complex exponential and logarithm use radian arguments.
What happens at zero?
The logarithm is undefined because ln|0| does not exist.
How do I use the Principal complex logarithm calculator?
For z = a + bi, enter a in Real part and b in Imaginary part. For example, z = 2 + 3i uses 2 and 3.
What is a worked example of Principal complex logarithm?
For 2+3i, |z|=√13 and Arg(z)=atan2(3,2); ln(√13)+i atan2(3,2)≈1.28247+0.98279i.
What does the Principal complex logarithm calculator calculate?
Calculate the principal complex logarithm using the modulus and principal argument of a+bi.