Skip to content

Commit 8a17b1b

Browse files
committed
Fix required answer tolerance display
1 parent 11b01a9 commit 8a17b1b

File tree

1 file changed

+2
-2
lines changed
  • OpenProblemLibrary/AlfredUniv/anton8e/chapter2/2.4

1 file changed

+2
-2
lines changed

OpenProblemLibrary/AlfredUniv/anton8e/chapter2/2.4/prob3.pg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Context()->{format}{number} = "";
4343
## $x1 is the point where we will estimate the derivative.
4444
$x1 = random(.001, .01,.0001);
4545
$epsilon = random(.0001,.0004,.00001);
46-
$answertolerance = 0.00001;
46+
$answertolerance = Real(0.00001);
4747
# check inputs_ref to see if the student modified $dh, otherwise we set it to
4848
## 0.0001.
4949
if (defined( ${$inputs_ref}{'dh'}) ) {
@@ -53,7 +53,7 @@ else {
5353
$dh = .0001
5454
}
5555

56-
## Define the function f and it's derivative
56+
## Define the function f and its derivative
5757
$f = Formula("x^2+x");
5858
$f->perlFunction(f1);
5959
$dfdx = $f->D('x');

0 commit comments

Comments
 (0)