Go to the source code of this file.
Classes | |
| class | CValue |
| This class is the base class from which other classes are derived. More... | |
| class | COperation |
| This class is the base class for mathematical operations. More... | |
| class | CAddition |
| This class represents addition. More... | |
| class | CSubstraction |
| This class represents substraction. More... | |
| class | CProduct |
| This class represents product. More... | |
| class | CDivision |
| This class represents division. More... | |
| class | COpposite |
| This class represents the unary minus. More... | |
| class | CSqrt |
| This class represents square root. More... | |
| class | CSin |
| This class represents sine. More... | |
| class | CCos |
| This class represents cosine. More... | |
| class | CTan |
| This class represents tangent. More... | |
| class | CExp |
| this class respresents exponential. More... | |
| class | CLn |
| this class respresents natural logarithm. More... | |
| class | CPow |
| This class represents exposants. More... | |
| class | CVariable |
| This class represents a variable. More... | |
| class | CNumber |
| This class represents a constant floating point number. More... | |
The base class is CValue, from which other classes are derived. First, the COperation class, from which the classes that represent different mathematical operations are derived. Next, the classes CVariable and CNumber are derived from the base class.
Each class contains the Compute() function that returns the value of the object. For operations, it returns the value of the operation (addition, for example), on its operands (represented by the two pointers. For numbers or variables, the returned value is simply the number itself or the value of x, y or z.
Definition in file compute.h.
1.5.4