Companion object to ComplexCartesian.
Attributes
- Companion
- class
- Graph
-
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
ComplexCartesian.type
Members list
Type members
Inherited and Abstract types
The names of the product elements.
The names of the product elements.
Attributes
- Inherited from:
- Mirror
The name of the type.
The name of the type.
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
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.
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
ComplexCartesianinstance 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.
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.