Skip to content

Commit 600f37c

Browse files
committed
Replace Function with Compute in answer(s), allow for single asymptote
1 parent 2a49e69 commit 600f37c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

OpenProblemLibrary/PCC/BasicAlgebra/RationalFunctions/rationalFunctionAsymptote20.pg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ $c = non_zero_random(-10,10,1);
5757

5858
do {$f = RandomVariableName();} until ($f ne 'x');
5959
$func = Compute("$c/(x**2+$a*x+$b)")->reduce;
60-
61-
$ans = List(Formula("x=$x1"),Formula("x=$x2"));
60+
if ($x1=$x2){
61+
$ans = List(Compute("x=$x1"));
62+
}
63+
else {
64+
$ans = List(Compute("x=$x1"),Compute("x=$x2"));
65+
}
6266
$var = 'x';
6367

6468
##############################################

0 commit comments

Comments
 (0)