evaluate_expression - evaluate a mathematical expression
int evaluate_expression(exp,get_val,nvals,result)
mathematical expression
(get_val(char*,double*)) given a name function should return values
number of values to calculate
expression result
User provides a routine (get_val) that is able to return double values when given a string, evaluate_expression will evaluate a complicated expression.
Supported Functions (specified by @ at begining):
COS | SIN | TAN |
ACOS | ASIN | ATAN |
COSH | SINH | INT |
EXP | LOG | SQRT |
ABS SGN |
the Math manpage, the Headermath manpage
sep