ComplexCartesian

com.phasmidsoftware.number.core.numerical.ComplexCartesian
See theComplexCartesian companion class

Companion object to ComplexCartesian.

Attributes

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

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(x: Int, y: Int): ComplexCartesian

Method to create a ComplexCartesian from two Int parameters.

Method to create a ComplexCartesian from two Int parameters.

Value parameters

x

the real part.

y

the imaginary part.

Attributes

Returns

a ComplexCartesian made of up x and y.

def apply(x: String, y: String): ComplexCartesian

Creates a ComplexCartesian instance from the given string representations of the real and imaginary parts.

Creates a ComplexCartesian instance from the given string representations of the real and imaginary parts.

Value parameters

x

the string representation of the real part of the complex number

y

the string representation of the imaginary part of the complex number

Attributes

Returns

a ComplexCartesian instance with the given real and imaginary parts

Method to create a real-valued ComplexCartesian.

Method to create a real-valued ComplexCartesian.

Value parameters

x

the real value.

Attributes

Returns

a ComplexCartesian with values x and 0.

def fromImaginary(number: Number): Complex

Constructs a complex number from an imaginary part.

Constructs a complex number from an imaginary part.

Value parameters

number

the imaginary part represented as a Number instance. It must meet specific criteria (e.g., be associated with SquareRoot and have a negative value).

Attributes

Returns

a Complex number in Cartesian form with a real part of zero and the provided imaginary part.

Note

Throws ComplexException if the given number does not satisfy the required logic.