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
def exp: Complex
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 log: Complex
def pow(b: Double): Complex
def pow(b: Complex): 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

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product