Cartesian class
Cartesian is a Complex that save real
and imaginary
parts
- Implemented types
-
- Available Extensions
Constructors
-
Cartesian(double real, [double imaginary = 0])
-
Create a complex number given the real part and optionally the imaginary
part.
const
Properties
-
hashCode
→ int
-
Get a hashCode for the complex number.
no setteroverride
-
imaginary
→ double
-
The imaginary part.
final
-
isFinite
→ bool
-
True if the real and imaginary parts are finite; otherwise, false.
no setteroverride
-
isInfinite
→ bool
-
True if the real and imaginary parts are positive infinity or negative
infinity; otherwise, false.
no setteroverride
-
isNaN
→ bool
-
True if the real and imaginary parts are the double Not-a-Number value;
otherwise, false.
no setteroverride
-
real
→ double
-
The real part.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
abs()
→ double
-
Return the absolute value of this complex number.
Returns
NaN
if either real or imaginary part is NaN
and double.INFINITY
if neither part is NaN
,
but at least one part is infinite.
override
-
argument()
→ double
-
Compute the argument of this complex number.
override
-
conjugate()
→ Cartesian
-
Return the conjugate of this complex number.
The conjugate of
a + bi
is a - bi
.
override
-
exp()
→ Cartesian
-
Compute the exponential function
of this complex number.
override
-
log()
→ Cartesian
-
Compute the natural logarithm
of this complex number.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
pow(num x)
→ Cartesian
-
Returns of value of this complex number raised to the power of
x
.
override
-
power<T extends Complex>(T z)
→ Cartesian
-
Returns of value of this complex number raised to the power of
x
.
override
-
reciprocal()
→ Cartesian
-
Returns the multiplicative inverse of
this
element.
override
-
sqrt()
→ Cartesian
-
Compute the square root
of this complex number.
override
-
sqrt1z()
→ Cartesian
-
Compute the square root
of
1 - this^2
for this complex number.
override
-
toString()
→ String
-
A string representation of this object.
override
Operators
-
operator *(Object factor)
→ Cartesian
-
Returns a
Complex
whose value is this * factor
.
Implements preliminary checks for NaN
and infinity followed by
the definitional formula:
override
-
operator +(Object addend)
→ Cartesian
-
Returns a
Complex
whose value is
(this + addend)
.
Uses the definitional formula
override
-
operator -(Object subtrahend)
→ Cartesian
-
Returns a
Complex
whose value is
this - subtrahend
.
Uses the definitional formula
override
-
operator /(Object divisor)
→ Cartesian
-
Returns a
Complex
whose value is
(this / divisor)
.
Implements the definitional formula
override
-
operator ==(Object other)
→ bool
-
The equality operator.
override
-
operator unary-()
→ Cartesian
-
Negate operator. Returns a
Complex
whose value is -this
.
Returns NAN
if either real or imaginary
part of this complex number equals double.nan
.
override