Complex as scala.math.Numeric trait.
Complex as scala.math.Numeric trait.
Conversions to Int, Long, Float and Double are only performed
if the imaginary component of the complex number is exactly 0.
Complex as scala.math.Fractional trait.
Ordering for complex numbers: orders lexicographically first on the real, then on the imaginary part of the number.
Implicit object providing scala.math.Fractional capabilities.
Implicit object providing scala.math.Fractional capabilities.
Although complex numbers have no natural ordering, some kind of
Ordering is required because Numeric extends Ordering. Hence,
an ordering based upon the real then imaginary components is used.
Constant Complex(0,1).
Constant Complex(NaN, NaN).
Constant Complex(1,0).
Constant Complex(0,0).