Documentation moved.
This entry is documented with its primary interface. Open the documentation →
Function
src/index.ts:987nerdamer.conjugate
nerdamer.conjugate(x: ExpressionInput): ExpressionReturns the complex conjugate of an expression. For a complex number z = a + bi, the conjugate is a - bi. Distributes over sums, products, integer powers, and powers whose constant base is known not to lie on the principal logarithm's branch cut.
Parameters
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | The expression to conjugate |
Returns
Expression — The complex conjugate of the expression
Examples
conjugate('3+2*i') // 3-2*i
conjugate('i') // -i
conjugate('a+b*i') // a-b*i
conjugate('(1+i)^i') // (1-i)^(-i)