Function reference · Complex

conjugate

Returns the complex conjugate: i becomes -i.

It works through sums, products and powers. In JavaScript it is nerdamer.conjugate.

Notation

conjugate(x)

Write it in an expression: nerdamer('conjugate(a+b*i)'), or in the Playground.

nerdamer.conjugate

nerdamer.conjugate(x: ExpressionInput): Expression

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

Examples

A symbolic complex number.

conjugate(a+b*i)
// → a-b*i
Open in Playground

The imaginary unit.

conjugate(i)
// → -i
Open in Playground

A product.

conjugate((1+2*i)*(3-i))
// → 5-5*i
Open in Playground

← Back to Function reference