Skip to content

Commit 1840bed

Browse files
committed
Fix bug 4691
1 parent bc88085 commit 1840bed

File tree

1 file changed

+2
-2
lines changed
  • OpenProblemLibrary/AlfredUniv/anton8e/chapter15/15_7

1 file changed

+2
-2
lines changed

OpenProblemLibrary/AlfredUniv/anton8e/chapter15/15_7/prob3.pg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ DOCUMENT(); # This should be the first executable line in the problem.
2525

2626
loadMacros(
2727
"PGstandard.pl",
28-
"PGchoicemacros.pl",
28+
# "PGchoicemacros.pl",
2929
"unionTables.pl",
3030
"Alfredmacros.pl",
3131
"MathObjects.pl",
@@ -48,7 +48,7 @@ $b = random(3,10);
4848
$r = sqrt($b/$a);
4949

5050
$upper = Formula("$b-$a*x^2-$a*y^2")->reduce;
51-
$ans = Real(2*pi*$n/(2*$n+2)*($b/$a)**(($n+1)/$n));
51+
$ans = Compute("2*pi*(($b*$n)/(2*$n+2)($b/$a)^(($n+1)/$n)-($a*$n)/(4*$n+2)*($b/$a)^((2*$n+1)/$n))");
5252

5353
#######################################################
5454
# Prevent students from being able to double click in

0 commit comments

Comments
 (0)