next up previous contents
Next: Evaluating a single formula Up: The ALIAS parser Previous: The ALIAS parser   Contents


Using the ALIAS parser in a program

The formula file name will be used as an input in all the procedures described in the following sections. As for the variable you must fill the text variable variable_name_IS defined by

 
char variable_name_IS[200][200];
with the name of you variable and set the integer variable Unknowns_Number_IS to the number of unknowns in your equations as in
 
strcpy(variable_name_IS[0],"x");
strcpy(variable_name_IS[1],"y");
Unknowns_Number_IS=2;
Note that the variable names may be any name composed with lower and upper cases, integer numbers and underscore, with the constraint that the first character should be a letter.

In the following procedures we will then use an interval vector to define the ranges for the unknowns. In this vector the ranges are ordered so that this order will correspond to the order in the declaration of the variable name (in the previous example the first range will be the range for x and the second range will be the range for y).



Subsections
next up previous contents
Next: Evaluating a single formula Up: The ALIAS parser Previous: The ALIAS parser   Contents
Jean-Pierre Merlet 2012-12-20