We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc88085 commit 1840bedCopy full SHA for 1840bed
OpenProblemLibrary/AlfredUniv/anton8e/chapter15/15_7/prob3.pg
@@ -25,7 +25,7 @@ DOCUMENT(); # This should be the first executable line in the problem.
25
26
loadMacros(
27
"PGstandard.pl",
28
- "PGchoicemacros.pl",
+# "PGchoicemacros.pl",
29
"unionTables.pl",
30
"Alfredmacros.pl",
31
"MathObjects.pl",
@@ -48,7 +48,7 @@ $b = random(3,10);
48
$r = sqrt($b/$a);
49
50
$upper = Formula("$b-$a*x^2-$a*y^2")->reduce;
51
-$ans = Real(2*pi*$n/(2*$n+2)*($b/$a)**(($n+1)/$n));
+$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))");
52
53
#######################################################
54
# Prevent students from being able to double click in
0 commit comments