Next: , Previous: , Up: Main entry points   [Contents][Index]


2.1.3 evaluator_evaluate

Synopsis

#include <matheval.h>

double evaluator_evaluate (void *evaluator, int count, char **names,
				    double *values);

Description

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.

Return value

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.

See also

evaluator_create, evaluator_destroy, evaluator_evaluate_x, evaluator_evaluate_x_y, evaluator_evaluate_x_y_z