Best method to test correctness of a function with float coefficients.

Re: Best method to test correctness of a function with float coefficients.

by Stephan Bach -
Number of replies: 0

Hi,
I've no experience with this kind of problem but I think using a combination of NumRelative and NumAbsolute should work. If every value of the student function is the same as the respective value of the teacher function within some relative or some absolute margin then the two functions are interpreted as equal.
You can define your own "answer test" in the feedback variables and then check on this variable in your PRT.
Stephan.