NAME

evaluate_expression - evaluate a mathematical expression


SYNOPSIS

int evaluate_expression(exp,get_val,nvals,result)


INPUT PARAMETERS

exp - char*
      mathematical expression
get_val - func
      (get_val(char*,double*)) given a name function should
      return values
nvals - int
      number of values to calculate


OUTPUT PARAMETERS

result - double*
      expression result


DESCRIPTION

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):

COSSINTAN
ACOSASINATAN
COSHSINHINT
EXPLOGSQRT
ABS SGN


SEE ALSO

the Math manpage, the Headermath manpage


LIBRARY

sep