Complex

com.phasmidsoftware.number.algebra.eager.Complex
See theComplex companion class
object Complex

Companion object for the Complex class.

Provides utility methods and typeclass instances related to Complex, including factory methods, equality checks, and operator support.

Attributes

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

Members list

Value members

Concrete methods

def apply(x: Complex): Complex

Constructs a new instance of Complex from a given numerical.Complex.

Constructs a new instance of Complex from a given numerical.Complex.

Value parameters

x

the input of type numerical.Complex to be converted into a Complex instance.

Attributes

Returns

a new Complex instance created using the given numerical.Complex.

Implicits

Implicits

LatexRenderer for Complex numbers.

LatexRenderer for Complex numbers.

Renders as a + bi where:

  • a is the real part
  • b is the imaginary part
  • Special cases for 0, purely real, purely imaginary handled

Attributes