Evaluate the exponential, logarithm, square root and trigonometric functions at any complex number. MathLive shows the principal value, every value of the multi-valued functions (ln z and √z), the formula with your numbers, and where z goes in the image plane.
Each point z of the square is coloured by the value f(z): the colour shows the angle of f(z) (red = 0°, yellow = 60°, green = 120°, cyan = 180°, blue = 240°, magenta = 300°) and the rings show its size (each ring is a doubling of |f(z)|). Zeros are where all colours meet; poles look the same with the colours reversed.
| Function | Formula | Notes |
|---|---|---|
| Exponential | Repeats every 2πi. Euler: e^(iπ) + 1 = 0. | |
| Logarithm | Infinitely many values; k = 0 is the principal value Ln z. Undefined at 0. | |
| Square root | Two values; the principal one has Re ≥ 0. | |
| Sine | Not bounded: |sin z| can be larger than 1. | |
| Cosine | cos(ib) = cosh b. | |
| Tangent | Undefined where cos z = 0. | |
| sinh, cosh | sinh(iz) = i sin z, cosh(iz) = cos z. |
ln z and √z have more than one value, because the angle of z is only known up to whole turns. MathLive gives the principal value, which uses the principal argument in (−π, π]; it jumps when z crosses the negative real axis (the branch cut). The other values are listed under the result.