Skip to content

Commit b159a2e

Browse files
committed
Use Compute not Formula in answer, fix Context
1 parent 600f37c commit b159a2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OpenProblemLibrary/PCC/BasicAlgebra/RationalFunctions/rationalFunctionAsymptote40.pg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $d = non_zero_random(1,10,1);
4545

4646
$x1 = -Fraction($b,$a);
4747

48-
Context("LimitedRadical");
48+
#Context("LimitedRadical");
4949
Context()->flags->set(reduceConstants=>0, reduceConstantFunctions=>0, formatStudentAnswer=>parsed);
5050
Context()->noreduce('(-x)-y');
5151
Context()->noreduce('(-x)-y','(-x)+y');
@@ -67,7 +67,7 @@ $e = -($a*$c+$b);
6767
$g = -$b*$c;
6868
$func = Compute("$d/(-$a*x**2+$e*x+$g)")->reduce;
6969

70-
$ans = List(Formula("x=$x1"),Formula("x=$x2"));
70+
$ans = List(Compute("x=$x1"),Compute("x=$x2"));
7171
$var = 'x';
7272

7373
##############################################

0 commit comments

Comments
 (0)