Complex

case class Complex(real: Double, imag: Double)

Immutable complex number representation backed by doubles for the real and imaginary parts.

Integration with scala.math.Numeric and scala.math.Fractional is provided.

Companion:
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def %(that: Complex): Complex
def %(that: Int): Complex
def %(that: Float): Complex
def %(that: Double): Complex
def *(that: Complex): Complex
def *(that: Int): Complex
def *(that: Float): Complex
def *(that: Double): Complex
def +(that: Complex): Complex
def +(that: Int): Complex
def +(that: Float): Complex
def +(that: Double): Complex
def -(that: Complex): Complex
def -(that: Int): Complex
def -(that: Float): Complex
def -(that: Double): Complex
def /(that: Complex): Complex
def /(that: Int): Complex
def /(that: Float): Complex
def /(that: Double): Complex
def abs: Double
override def equals(that: Any): Boolean
Definition Classes
Equals -> Any
override def hashCode(): Int
Definition Classes
Any
def im(): Double

Redundant accessor method, placed for transparent interlink with MATLAB/Mathematica.

Redundant accessor method, placed for transparent interlink with MATLAB/Mathematica.

def pow(b: Double): Complex
def re(): Double

Redundant accessor method, placed for transparent interlink with MATLAB/Mathematica.

Redundant accessor method, placed for transparent interlink with MATLAB/Mathematica.

override def toString: String
Definition Classes
Any

Inherited methods

Inherited from:
Product