CalcWorldHub
Free online calculator · no signup

Principal complex logarithm calculator

Calculate the principal complex logarithm using the modulus and principal argument of a+bi.

Principal complex logarithm calculator — Real part of first number, Imaginary part of first number and calculation method
Principal complex logarithm calculator: inputs and calculation method.

How to use this calculator

Calculate the principal complex logarithm using the modulus and principal argument of a+bi.

  1. 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.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

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

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.

Related calculators