WeBWorK Problems

gcd values from variables create zero division errors?

Re: gcd values from variables create zero division errors?

by Michael Gage -
Number of replies: 0
Just a quick check.  Does the same thing happen if you use the variables
$c = -64 and $d=19683 and calculuate gc($c,$d)?

$a and $b have special meanings in perl for historical reasons.  I think we've prevented unexpected behavior in PG code when using these variables but just in case try using $c and $d instead and see if the behavior changes.

-- Mike