Forum archive 2000-2006

John Jones - std_num_cmp_abs not working in 1.7?

John Jones - std_num_cmp_abs not working in 1.7?

by Arnold Pizer -
Number of replies: 0
inactiveTopicstd_num_cmp_abs not working in 1.7? topic started 5/10/2002; 2:17:41 PM
last post 5/14/2002; 3:02:18 AM
userJohn Jones - std_num_cmp_abs not working in 1.7?  blueArrow
5/10/2002; 2:17:41 PM (reads: 1117, responses: 3)
Hi,

Maybe this has been fixed already, but the answer evaluator in the subject does not seem to pay attention to the absolute tolerance it is given. It seems to get lost in the option renaming which takes place in num_cmp.

John

<| Post or View Comments |>


userArnold K. Pizer - Re: std_num_cmp_abs not working in 1.7?  blueArrow
5/10/2002; 2:27:10 PM (reads: 1357, responses: 0)
HI John,

This (hopefully) was fixed in version 1.7.02

The CVS log states:

Fixed bug in std_num_cmp (and 7 other related answer evaluators) so that relative tolerances can be set.

You can download the current version of PGanswermacros.pl from the CVS repository:

http://webwork.math.rochester.edu/cgi-bin/cvsweb.cgi/webwork/system/courseScripts/PGanswermacros.pl

Arnie

<| Post or View Comments |>


userJohn Jones - Re: std_num_cmp_abs not working in 1.7?  blueArrow
5/10/2002; 2:30:44 PM (reads: 1387, responses: 0)
That's the version I have. I think absolute tolerances were not fixed with the relative cousins.

John

<| Post or View Comments |>


userArnold K. Pizer - Re: std_num_cmp_abs not working in 1.7?  blueArrow
5/14/2002; 3:02:18 AM (reads: 1392, responses: 0)
Hi John,

Thanks. You are correct --- there is a bug. As you pointed out (private email), one way to fix this is (in PGanswermacros.pl) to change the parameter "tolerance" to "tol" in the two places it appears in sub std_num_cmp_abs. But the root cause of this is actually a bug in num_cmp. This has been fixed in the most recent version PGanswermacros.pl which you can download if you want --- see below. Note that very few problems use std_num_cmp_abs, etc. so that most WeBWorK users will never see this bug and can safely continue using the version of 1.7.02 version of PGanswermacros.pl.

You can download the current version of PGanswermacros.pl from the CVS repository:

http://webwork.math.rochester.edu/cgi-bin/cvsweb.cgi/webwork/system/courseScripts/PGanswermacros.pl

Arnie

<| Post or View Comments |>