amath
1.8.5
Simple command line calculator
|
Represent a complex number with 2 components of 15 significant digits. More...
#include <cplex.h>
Private Attributes | |
complex | z |
Additional Inherited Members | |
Protected Attributes inherited from Number | |
NumberSystem | system |
Represent a complex number with 2 components of 15 significant digits.
Calculations are done using 64 bit IEEE 754 arithmetics.
ComplexNumber::ComplexNumber | ( | ) |
Definition at line 36 of file cplex.cpp.
References cpack(), nsyscomplex, Number::Number(), and z.
Referenced by Add(), Div(), Mul(), Raise(), and Sub().
|
explicit |
Definition at line 41 of file cplex.cpp.
References nsyscomplex, Number::Number(), and z.
Referenced by Add(), ArcCosecant(), ArcCosine(), ArcCotangent(), ArcSecant(), ArcSine(), ArcTangent(), Ceiling(), Clone(), Cosecant(), Cosine(), Cotangent(), CubeRoot(), Div(), Floor(), HypArcCosecant(), HypArcCosine(), HypArcCotangent(), HypArcSecant(), HypArcSine(), HypArcTangent(), HypCosecant(), HypCosine(), HypCotangent(), HypSecant(), HypSine(), HypTangent(), Log(), Log10(), Log2(), Mul(), Raise(), Reciprocal(), Round(), Secant(), Sine(), SquareRoot(), Sub(), Tangent(), Trunc(), and Unary().
ComplexNumber::ComplexNumber | ( | double | real, |
double | imag | ||
) |
Definition at line 46 of file cplex.cpp.
References cpack(), nsyscomplex, Number::Number(), and z.
Referenced by ComplexiNode::ComplexiNode(), RealNumber::CubeRoot(), RealNumber::Log(), RealNumber::Log10(), RealNumber::Log2(), Parser::ParseNumber(), RealNumber::Raise(), and RealNumber::SquareRoot().
|
virtual |
Implements Number.
Definition at line 170 of file cplex.cpp.
References cadd(), ComplexNumber(), cpack(), Number::IsNaN(), nnnan, NonNumber::NonNumber(), nsyscomplex, nsysreal, Number::system, RealNumber::x, and z.
|
virtual |
Implements Number.
Definition at line 419 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements Number.
Definition at line 549 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 544 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 429 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 424 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 569 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 564 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 559 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 554 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 404 of file cplex.cpp.
References casec(), ComplexNumber(), and z.
|
virtual |
|
virtual |
|
virtual |
Implements Number.
Definition at line 539 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 534 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
|
virtual |
Implements Number.
Definition at line 374 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 55 of file cplex.cpp.
References ComplexNumber(), and z.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements Number.
Definition at line 509 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 504 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 230 of file cplex.cpp.
References cdiv(), ComplexNumber(), cpack(), Number::IsNaN(), Number::IsZero(), nnnan, NonNumber::NonNumber(), nsyscomplex, nsysreal, Number::system, RealNumber::x, and z.
|
virtual |
Implements Number.
Definition at line 384 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 379 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 270 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
complex ComplexNumber::GetComplexValue | ( | ) | const |
Definition at line 75 of file cplex.cpp.
References z.
Referenced by DecimalSystem::GetText(), and PositionalNumeralSystem::GetText().
|
virtual |
double ComplexNumber::GetImagValue | ( | ) | const |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements Number.
Definition at line 529 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 524 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 519 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 514 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 484 of file cplex.cpp.
References cacsch(), ComplexNumber(), and z.
|
virtual |
|
virtual |
Implements Number.
Definition at line 489 of file cplex.cpp.
References cacoth(), ComplexNumber(), and z.
|
virtual |
Implements Number.
Definition at line 479 of file cplex.cpp.
References casech(), ComplexNumber(), and z.
|
virtual |
|
virtual |
Implements Number.
Definition at line 474 of file cplex.cpp.
References catanh(), ComplexNumber(), and z.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Returns true if number is infinite.
Implements Number.
Definition at line 136 of file cplex.cpp.
References cimag(), creal(), FloatUnion64::floatingPoint, FloatUnion64::IsInf(), FloatUnion64::IsMaxNegative(), FloatUnion64::IsMaxPositive(), and z.
|
virtual |
Returns true if number is NaN.
Implements Number.
Definition at line 125 of file cplex.cpp.
References cimag(), creal(), FloatUnion64::floatingPoint, FloatUnion64::IsNaN(), and z.
|
virtual |
Implements Number.
Definition at line 106 of file cplex.cpp.
References cimag(), creal(), FloatUnion64::floatingPoint, FloatUnion64::IsNegative(), and z.
|
virtual |
|
virtual |
Implements Number.
Definition at line 114 of file cplex.cpp.
References cimag(), creal(), FloatUnion64::floatingPoint, FloatUnion64::IsZero(), and z.
|
virtual |
Implements Number.
Definition at line 320 of file cplex.cpp.
References cimag(), clog(), ComplexNumber(), creal(), nnnan, NonNumber::NonNumber(), and z.
|
virtual |
Implements Number.
Definition at line 336 of file cplex.cpp.
References cimag(), clog10(), ComplexNumber(), creal(), nnnan, NonNumber::NonNumber(), and z.
|
virtual |
Implements Number.
Definition at line 328 of file cplex.cpp.
References cimag(), clogb(), ComplexNumber(), creal(), nnnan, NonNumber::NonNumber(), and z.
Implements Number.
Definition at line 210 of file cplex.cpp.
References cmul(), ComplexNumber(), cpack(), Number::IsNaN(), nnnan, NonNumber::NonNumber(), nsyscomplex, nsysreal, Number::system, RealNumber::x, and z.
|
virtual |
Implements Number.
Definition at line 250 of file cplex.cpp.
References ComplexNumber(), cpack(), cpow(), Number::IsNaN(), nnnan, NonNumber::NonNumber(), nsyscomplex, nsysreal, Number::system, RealNumber::x, and z.
Referenced by RealNumber::Raise().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements Number.
Definition at line 190 of file cplex.cpp.
References ComplexNumber(), cpack(), csub(), Number::IsNaN(), nnnan, NonNumber::NonNumber(), nsyscomplex, nsysreal, Number::system, RealNumber::x, and z.
|
virtual |
|
virtual |
|
virtual |
Implements Number.
Definition at line 164 of file cplex.cpp.
References cimag(), ComplexNumber(), cpack(), creal(), and z.
|
virtual |
Implements Number.
Definition at line 499 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
virtual |
Implements Number.
Definition at line 494 of file cplex.cpp.
References nnnimp, and NonNumber::NonNumber().
|
private |
Definition at line 141 of file cplex.h.
Referenced by Absolute(), Add(), ArcCosecant(), ArcCosine(), ArcCotangent(), ArcSecant(), ArcSine(), ArcTangent(), Ceiling(), Clone(), ComplexNumber(), Cosecant(), Cosine(), Cotangent(), CubeRoot(), Div(), Floor(), GetComplexValue(), GetDefaultPrecedence(), GetImagValue(), GetIntegerValue(), GetPrecedence(), GetRealValue(), HypArcCosecant(), HypArcCosine(), HypArcCotangent(), HypArcSecant(), HypArcSine(), HypArcTangent(), HypCosecant(), HypCosine(), HypCotangent(), HypSecant(), HypSine(), HypTangent(), IsInfinite(), IsNaN(), IsNegative(), IsZero(), Log(), Log10(), Log2(), Mul(), PureComplexValue(), Raise(), Reciprocal(), Round(), Secant(), Signum(), Sine(), SquareRoot(), Sub(), Tangent(), Trunc(), and Unary().