evaluates function

evaluate for accuracy