Complex

object Complex
Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any
Complex.type

Type members

Classlikes

object AddCC extends Impl2[Complex, Complex, Complex]
object AddCD extends Impl2[Complex, Double, Complex]
object AddCF extends Impl2[Complex, Float, Complex]
object AddCI extends Impl2[Complex, Int, Complex]
object AddDC extends Impl2[Double, Complex, Complex]
object AddFC extends Impl2[Float, Complex, Complex]
object AddIC extends Impl2[Int, Complex, Complex]

Complex as scala.math.Numeric trait. Conversions to Int, Float and Double are only performed if the imaginary component of the complex number is exactly 0.

Complex as scala.math.Numeric trait. Conversions to Int, Float and Double are only performed if the imaginary component of the complex number is exactly 0.

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.

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.

Companion:
class

Complex as scala.math.Fractional trait.

Complex as scala.math.Fractional trait.

Companion:
object

Ordering for complex numbers: orders lexicographically first on the real, then on the imaginary part of the number.

Ordering for complex numbers: orders lexicographically first on the real, then on the imaginary part of the number.

object DivCC extends Impl2[Complex, Complex, Complex]
object DivCD extends Impl2[Complex, Double, Complex]
object DivCF extends Impl2[Complex, Float, Complex]
object DivCI extends Impl2[Complex, Int, Complex]
object DivDC extends Impl2[Double, Complex, Complex]
object DivFC extends Impl2[Float, Complex, Complex]
object DivIC extends Impl2[Int, Complex, Complex]
object ModCC extends Impl2[Complex, Complex, Complex]
object ModCD extends Impl2[Complex, Double, Complex]
object ModCF extends Impl2[Complex, Float, Complex]
object ModCI extends Impl2[Complex, Int, Complex]
object ModDC extends Impl2[Double, Complex, Complex]
object ModFC extends Impl2[Float, Complex, Complex]
object ModIC extends Impl2[Int, Complex, Complex]
object MulCC extends Impl2[Complex, Complex, Complex]
object MulCD extends Impl2[Complex, Double, Complex]
object MulCF extends Impl2[Complex, Float, Complex]
object MulCI extends Impl2[Complex, Int, Complex]
object MulDC extends Impl2[Double, Complex, Complex]
object MulFC extends Impl2[Float, Complex, Complex]
object MulIC extends Impl2[Int, Complex, Complex]
object Neg extends Impl[Complex, Complex]
object PowCC extends Impl2[Complex, Complex, Complex]
object PowCD extends Impl2[Complex, Double, Complex]
object SubCC extends Impl2[Complex, Complex, Complex]
object SubCD extends Impl2[Complex, Double, Complex]
object SubCF extends Impl2[Complex, Float, Complex]
object SubCI extends Impl2[Complex, Int, Complex]
object SubDC extends Impl2[Double, Complex, Complex]
object SubFC extends Impl2[Float, Complex, Complex]
object SubIC extends Impl2[Int, Complex, Complex]
object scalar extends Field[Complex]

Inherited types

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete fields

val i: Complex

Constant Complex(0,1).

Constant Complex(0,1).

Constant Complex(NaN, NaN).

Constant Complex(NaN, NaN).

Constant Complex(1,0).

Constant Complex(1,0).

Constant Complex(0,0).

Constant Complex(0,0).

Implicits

Implicits

implicit val ComplexZero: Zero[Complex]
implicit val complexNorm: Impl[Complex, Double]