|Accepting answers only if they are correct to 3 decimal places||topic started 4/8/2002; 5:01:23 PM
last post 4/8/2002; 9:27:00 PM
|Michael Gage - Re: Accepting answers only if they are correct to 3 decimal places
4/8/2002; 9:27:00 PM (reads: 1604, responses: 0)
The short answer is that
ANS( num_cmp(4, tol=>.001));
will generate an answer evaluator which will accept answers between 3.999 and 4.001 (I'm not sure if the interval is open or closed :-) )
ANS( num_cmp(100, reltol=>1) );
will accept answers within 1% of the correct answer (e.g. + or - one in this case).
Hope this helps answer your question.
Did you want an answer evaluator that checked that the student's answer was correct to exactly 3 decimal places, no more, no less? That's doable, but not automatic.