Function reference · Complex

polarform

Writes a complex expression in polar form, r·e^(iθ).

A real number stays as it is.

Notation

polarform(args)

Write it in an expression: nerdamer('polarform(1+i)'), or in the Playground.

nerdamer.polarform

nerdamer.polarform(...args: [x]): Expression

A method on the default import. Arguments can be strings, as in Notation.

Examples

A number.

polarform(1+i)
// → 2^(1/2)*e^((1/4)*i*pi)
Open in Playground

A symbolic expression.

polarform(x^2+i)
// → e^(i*atan2(1, x^2))*((1+x^4)^(1/2))
Open in Playground

A real number stays as it is.

polarform(3)
// → 3
Open in Playground

← Back to Function reference