CMathExpression.cpp File Reference

This file contains the implementations of the different functions that will be used in mathematical calculation. More...

#include <cmath>
#include <cstdlib>
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>
#include "popassert.h"
#include "CVector3f.h"
#include "compute.h"
#include "CMathExpression.h"

Go to the source code of this file.

Functions

bool In (const char *Formula, int min, int max)
 This function checks is an operator (+, -, *, /, ^) is in parenthesis.


Detailed Description

This file contains the implementations of the different functions that will be used in mathematical calculation.

It contains the functions that validate an expression, build the tree in a CMathExpression and derives an expression.

The algorithm used it the following. The function recursively calls itself the following way to build the three.

Definition in file CMathExpression.cpp.


Generated on Fri Dec 5 03:20:33 2008 for Mathematical Ray-tracer by  doxygen 1.5.4