case class Complex(real: Double, imag: Double) extends Product with Serializable
Immutable complex number representation backed by doubles for the real and imaginary parts.
Integration with scala.math.Numeric
and scala.math.Fractional
is
provided.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Complex
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def %(that: Double): Complex
- def %(that: Float): Complex
- def %(that: Int): Complex
- def %(that: Complex): Complex
- def *(that: Double): Complex
- def *(that: Float): Complex
- def *(that: Int): Complex
- def *(that: Complex): Complex
- def +(that: Double): Complex
- def +(that: Float): Complex
- def +(that: Int): Complex
- def +(that: Complex): Complex
- def -(that: Double): Complex
- def -(that: Float): Complex
- def -(that: Int): Complex
- def -(that: Complex): Complex
- def /(that: Double): Complex
- def /(that: Float): Complex
- def /(that: Int): Complex
- def /(that: Complex): Complex
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def abs: Double
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def conjugate: Complex
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- Complex → Equals → AnyRef → Any
- def exp: Complex
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- Complex → AnyRef → Any
- def im(): Double
Redundant accessor method, placed for transparent interlink with MATLAB/Mathematica.
- val imag: Double
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def log: Complex
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def pow(b: Complex): Complex
- def pow(b: Double): Complex
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def re(): Double
Redundant accessor method, placed for transparent interlink with MATLAB/Mathematica.
- val real: Double
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Complex → AnyRef → Any
- def unary_-: Complex
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])