com.phasmidsoftware.number.core.numerical.BaseComplex
See theBaseComplex companion class
Companion object to BaseComplex.
Attributes
- Companion
-
class
- Graph
-
- Supertypes
-
class Object
trait Matchable
class Any
- Self type
-
Members list
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.
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).