Next: evaluator_get_string
, Previous: evaluator_destroy
, Up: Main entry points [Contents][Index]
evaluator_evaluate
#include <matheval.h> double evaluator_evaluate (void *evaluator, int count, char **names, double *values);
Calculate value of function represented by evaluator object for given
variable values. Evaluator object is pointed by evaluator
pointer. Variable names and corresponding values are given by
names
and values
array respectively. Length of arrays
is given by count
argument.
Function value for given variable values. If some variable that appears in function is not mentioned in arguments, result is indeterminate. If all variables that appear in function are given, presence of variable or variables that doesn’t appear in function in arguments has no effect, i.e. result is still exact.