See Original text in context
multi method conj(Numeric --> Numeric)
Returns the complex conjugate of the number. Returns the number itself for real numbers.
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»
See Original text in context
method conj(Complex: --> Complex)
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»