Standard option for fun_cmp isn't working for multivariate functions | topic started 9/21/2005; 5:08:50 PM last post 9/21/2005; 6:54:54 PM |
|
Davide P. Cervone - Re: Standard option for fun_cmp isn't working for multivariate functions 9/21/2005; 6:54:54 PM (reads: 438, responses: 0) |
This
was a bug in pg/macros/PGanswermacros.pl until version 1.35 of that
file, so it sounds like you are using a version older than that. It is
probably not a good idea to update just this one file to the current
version without updating all of WeBWorK, as there have been some fairly
major adjustements to this file recently that are tied to changes in
other files. You might be able to get away with just updating the pg
directory, but I don't remember if there's any changes that are related
to changes in the webwork2 directory. The fix is a one-liner, however, and you may want to apply it to PGanswermacros.pl yourself. At around line 1378 (it may be different depending on the version you have), change unless ( ref($out_options{var}) eq 'ARRAY' ) {to unless ( ref($out_options{var}) eq 'ARRAY' || $out_options{var} =~ m/^d+$/) {That should takre care of it. Davide |