method conj
1 | class Complex |
1.1 | (Complex) method conj |
2 | class Numeric |
2.1 | (Numeric) method conj |
3 | class Cool |
3.1 | (Cool) method conj |
Documentation for method conj
assembled from the following types:
class Complex
From Complex
(Complex) method conj
Defined as:
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»
class Numeric
From Numeric
(Numeric) method conj
multi method conj(Numeric --> Numeric)
Returns the complex conjugate of the number. Returns the number itself for real numbers.
class Cool
From Cool
(Cool) method conj
Defined as:
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»