WeBWorK Problems

Fractions not Reducing

Re: Fractions not Reducing

by Patrick Spencer -
Number of replies: 0
Changing it to

$answer = ($a > 0 ) ? Fraction($b**($a),1) : Fraction(1, $b**(-$a));

Worked! Thank you!