Qu

conj

Builtin index · Core maths

result = conj(x)

Input: x · Output: result

What it is

Complex conjugate (negates the imaginary part); passes a real x through unchanged. x is a scalar, Vec, or Mat (real or complex).

Overloads

x can be scalar, Vec, Mat, or Complex.

2 forms. Each carries its own inputs, outputs and worked example — pick the tab for the one you are calling.

CodeInputOutputDescription
result = conj(x)
x scalar, Vec, or Matnot documented yet
result Complex or Vec
Identity — passed through unchanged, since conjugation is a no-op on a value with no imaginary part.

Examples

Written for this form and run by the build -- the output below is what the engine actually produced.

print(conj(5))   # 5

output
5
CodeInputOutputDescription
result = conj(x)
x Complexnot documented yet
result Complex or Vec
Negates the imaginary part, leaving the real part alone.

Examples

Written for this form and run by the build -- the output below is what the engine actually produced.

print(conj(3 + 4j))   # 3 - 4j

output
3 - 4j