Class GMPComplexType
A complex number - algabraic form - GMP version
A complex number is a number that can be expressed in the form a + bi, where a and b are real numbers and i is the imaginary unit, which satisfies the equation i² = −1
Complex numbers use real numbers expressed as a GMPRationalType. This allows for greater arithmetic stability
- chippyash\Type\AbstractType implements chippyash\Type\Interfaces\TypeInterface
- chippyash\Type\AbstractMultiValueType
- chippyash\Type\Number\Complex\AbstractComplexType implements chippyash\Type\Interfaces\ComplexTypeInterface, chippyash\Type\Interfaces\NumericTypeInterface
- chippyash\Type\Number\Complex\GMPComplexType implements chippyash\Type\Interfaces\GMPInterface
Namespace: chippyash\Type\Number\Complex
Link: http://en.wikipedia.org/wiki/Complex_number
Located at Number/Complex/GMPComplexType.php
Link: http://en.wikipedia.org/wiki/Complex_number
Located at Number/Complex/GMPComplexType.php
public
|
#
__construct(
Constructor |
public
|
|
public
|
|
public
GMP|resource
|
|
public
|
|
public
|
|
public
|
|
public
|
#
asGMPRational( )
Return number as GMPRational number. If number isReal() will return GMPRationalType NB, numerator and denominator will be caste as GMPIntTypes |
public
|
#
asRational( )
Return number as Rational number. NB, numerator and denominator will be caste as IntTypes |
public
|
__clone(),
__invoke(),
__toString(),
abs(),
asIntType(),
asPolar(),
conjugate(),
i(),
isGaussian(),
isReal(),
isZero(),
negate(),
polarQuadrant(),
polarString(),
r(),
radius(),
toFloat()
|
get(),
set()
|