conj
ErrorsCollection

conj

Synthesised documentation from type/Numeric type/Cool type/Complex

From type/Numeric

See Original text in context

multi method conj(Numeric:D --> Numeric:D)

Returns the complex conjugate of the number. Returns the number itself for real numbers.

From type/Cool

See Original text in context

method conj()

Coerces the invocant to Numeric and returns the Complex conjugate (that is, the number with the sign of the imaginary part negated).

say (1+2i).conj;        # OUTPUT: «1-2i␤»

From type/Complex

See Original text in context

method conj(Complex:D: --> Complex:D)

Returns the complex conjugate of the invocant (that is, the number with the sign of the imaginary part negated).

say (1-4i).conj;                # OUTPUT: «1+4i␤»