amath
1.8.5
Simple command line calculator
|
#include <numb.h>
Public Member Functions | |
Number (NumberSystem system) | |
virtual | ~Number () |
virtual Number * | Clone ()=0 |
virtual int | GetIntegerValue ()=0 |
virtual double | GetRealValue ()=0 |
virtual bool | PureComplexValue ()=0 |
virtual int | GetPrecedence ()=0 |
virtual int | GetDefaultPrecedence ()=0 |
virtual bool | IsNegative ()=0 |
virtual bool | IsZero ()=0 |
virtual bool | IsNaN ()=0 |
virtual bool | IsInfinite ()=0 |
virtual bool | IsNotImplemented ()=0 |
virtual Number * | Unary ()=0 |
virtual Number * | Add (Number *other)=0 |
virtual Number * | Sub (Number *other)=0 |
virtual Number * | Mul (Number *other)=0 |
virtual Number * | Div (Number *other)=0 |
virtual Number * | Raise (Number *exponent)=0 |
virtual Number * | Signum ()=0 |
virtual Number * | Trunc ()=0 |
virtual Number * | Round ()=0 |
virtual Number * | Floor ()=0 |
virtual Number * | Ceiling ()=0 |
virtual Number * | Absolute ()=0 |
virtual Number * | SquareRoot ()=0 |
virtual Number * | CubeRoot ()=0 |
virtual Number * | Reciprocal ()=0 |
virtual Number * | Factorial ()=0 |
virtual Number * | Log ()=0 |
virtual Number * | Log2 ()=0 |
virtual Number * | Log10 ()=0 |
virtual Number * | Sine ()=0 |
virtual Number * | Cosine ()=0 |
virtual Number * | Tangent ()=0 |
virtual Number * | Cosecant ()=0 |
virtual Number * | Secant ()=0 |
virtual Number * | Cotangent ()=0 |
virtual Number * | Chord ()=0 |
virtual Number * | ExSecant ()=0 |
virtual Number * | ExCosecant ()=0 |
virtual Number * | ArcSine ()=0 |
virtual Number * | ArcCosine ()=0 |
virtual Number * | ArcTangent ()=0 |
virtual Number * | ArcCosecant ()=0 |
virtual Number * | ArcSecant ()=0 |
virtual Number * | ArcCotangent ()=0 |
virtual Number * | ArcChord ()=0 |
virtual Number * | ArcExSecant ()=0 |
virtual Number * | ArcExCosecant ()=0 |
virtual Number * | HypSine ()=0 |
virtual Number * | HypCosine ()=0 |
virtual Number * | HypTangent ()=0 |
virtual Number * | HypCosecant ()=0 |
virtual Number * | HypSecant ()=0 |
virtual Number * | HypCotangent ()=0 |
virtual Number * | HypArcSine ()=0 |
virtual Number * | HypArcCosine ()=0 |
virtual Number * | HypArcTangent ()=0 |
virtual Number * | HypArcCosecant ()=0 |
virtual Number * | HypArcSecant ()=0 |
virtual Number * | HypArcCotangent ()=0 |
virtual Number * | VerSine ()=0 |
virtual Number * | VerCosine ()=0 |
virtual Number * | CoVerSine ()=0 |
virtual Number * | CoVerCosine ()=0 |
virtual Number * | HaVerSine ()=0 |
virtual Number * | HaVerCosine ()=0 |
virtual Number * | HaCoVerSine ()=0 |
virtual Number * | HaCoVerCosine ()=0 |
virtual Number * | ArcVerSine ()=0 |
virtual Number * | ArcVerCosine ()=0 |
virtual Number * | ArcCoVerSine ()=0 |
virtual Number * | ArcCoVerCosine ()=0 |
virtual Number * | ArcHaVerSine ()=0 |
virtual Number * | ArcHaVerCosine ()=0 |
virtual Number * | ArcHaCoVerSine ()=0 |
virtual Number * | ArcHaCoVerCosine ()=0 |
Protected Attributes | |
NumberSystem | system |
Friends | |
class | PositionalNumeralSystem |
class | DecimalSystem |
struct | IntegerNumber |
struct | RealNumber |
struct | ComplexNumber |
|
inlineexplicit |
Definition at line 69 of file numb.h.
References system.
Referenced by ComplexNumber::ComplexNumber(), NonNumber::NonNumber(), and RealNumber::RealNumber().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by AbsoluteFunctionNode::Evaluate(), and AbsoluteNode::Evaluate().
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by RealNumber::Add(), AdditionNode::Evaluate(), Optimizer::ReduceValueNodes(), and RealNumber::Sub().
|
pure virtual |
Implemented in NonNumber, ComplexNumber, and RealNumber.
Referenced by ArcChordNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ArcCosecantNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ArcCosineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, ComplexNumber, and RealNumber.
Referenced by ArcCotangentNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ArcCoversedCosineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ArcCoversedSineNode::Evaluate().
|
pure virtual |
Implemented in RealNumber, NonNumber, and ComplexNumber.
Referenced by ArcExcosecantNode::Evaluate().
|
pure virtual |
Implemented in RealNumber, NonNumber, and ComplexNumber.
Referenced by ArcExsecantNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ArcHaCoversedCosineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ArcHaCoversedSineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ArcHaVersedCosineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ArcHaVersedSineNode::Evaluate().
|
pure virtual |
Implemented in RealNumber, NonNumber, and ComplexNumber.
Referenced by ArcSecantNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ArcSineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ArcTangentNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ArcVersedCosineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ArcVersedSineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by CeilingNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ChordNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by Variable::AssignValue(), EvalStatement::Execute(), Variable::GetValue(), and Program::SetLastResult().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by CosecantNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by CosineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by CotangentNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by CoversedCosineNode::Evaluate(), and CoversedSineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by RealNumber::CubeRoot(), and CubeRootNode::Evaluate().
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by DivisionNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ExcosecantNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ExsecantNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by FactorialNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by FloorNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by NumericValueNode::GetPrecedence().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by Parser::ParseDigistStatement(), and Parser::ParseNumeralStatement().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by NumericValueNode::GetPrecedence().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by Grid::FunctionValue(), DecimalSystem::GetText(), PositionalNumeralSystem::GetText(), and Parser::ParseNumber().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HaCoversedCosineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HaCoversedSineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HaVersedCosineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HaVersedSineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HyperbolicArcCosecantNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HyperbolicArccosineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HyperbolicArcCotangentNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HyperbolicArcSecantNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HyperbolicArcsineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HyperbolicArctangentNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HyperbolicCosecantNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HyperbolicCosineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HyperbolicCotangentNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HyperbolicSecantNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HyperbolicSineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by HyperbolicTangentNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by PositionalNumeralSystem::GetSpecialCase().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ComplexNumber::Add(), RealNumber::Add(), ComplexNumber::Div(), RealNumber::Div(), PositionalNumeralSystem::GetSpecialCase(), RealNumber::Mul(), ComplexNumber::Mul(), ComplexNumber::Raise(), RealNumber::Raise(), RealNumber::Sub(), and ComplexNumber::Sub().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by PositionalNumeralSystem::GetSpecialCase().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by PositionalNumeralSystem::GetSpecialCase().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by ComplexNumber::Div(), RealNumber::Div(), and PositionalNumeralSystem::GetSpecialCase().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by LnRootNode::Evaluate(), and RealNumber::Log().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by LogNode::Evaluate(), and RealNumber::Log10().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by BinaryLogNode::Evaluate(), and RealNumber::Log2().
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by MultiplicationNode::Evaluate(), and RealNumber::Mul().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by Optimizer::ReduceValueNodes().
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by PowerNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by RealNumber::Div().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by RoundNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by SecantNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by SignumNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by SineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by SquareRootNode::Evaluate(), and RealNumber::SquareRoot().
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by SubtractionNode::Evaluate(), and Optimizer::ReduceValueNodes().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by TangentNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by TruncNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by UnaryNode::Evaluate(), Optimizer::ReduceUnaryNodes(), and RealNumber::Sub().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by VersedCosineNode::Evaluate().
|
pure virtual |
Implemented in NonNumber, RealNumber, and ComplexNumber.
Referenced by VersedSineNode::Evaluate().
|
friend |
|
friend |
|
friend |
|
friend |
|
protected |
Definition at line 171 of file numb.h.
Referenced by ComplexNumber::Add(), RealNumber::Add(), ComplexNumber::Div(), RealNumber::Div(), DecimalSystem::GetText(), PositionalNumeralSystem::GetText(), RealNumber::Mul(), ComplexNumber::Mul(), Number(), RealNumber::Raise(), ComplexNumber::Raise(), ComplexNumber::Sub(), and RealNumber::Sub().