BaseComplex

com.phasmidsoftware.number.core.numerical.BaseComplex
See theBaseComplex companion class
object BaseComplex

Companion object to BaseComplex.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def narrow(x: Field, polar: Boolean): Complex

Method to take a field and narrow it to a BaseComplex.

Method to take a field and narrow it to a BaseComplex.

Value parameters

polar

whether we want a polar result or a cartesian result.

x

a Field.

Attributes

Returns

a BaseComplex.

def unapply(complex: BaseComplex): Option[(Number, Number)]

Method used by pattern-matching to yield the real and imaginary parts of a BaseComplex.

Method used by pattern-matching to yield the real and imaginary parts of a BaseComplex.

NOTE this is dangerous.

Value parameters

complex

a BaseComplex.

Attributes

Returns

an optional tuple of two Numbers (real, imag).