From 9fac656685ffcfb3ad03cf421fc7e4a08c45ccaf Mon Sep 17 00:00:00 2001 From: Chris Cunningham Date: Mon, 28 Jul 2014 16:25:06 -0400 Subject: [PATCH] Fix abs to Math.abs Question 2 was not working. --- unit1.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit1.tex b/unit1.tex index 92a6a38..14eb6c7 100644 --- a/unit1.tex +++ b/unit1.tex @@ -46,7 +46,7 @@ feedback( 'The only variable you should use is $x$.' ); } - if (abs(f.evaluate( {x:2} ) - 4.0) < 0.0001) + if (Math.abs(f.evaluate( {x:2} ) - 4.0) < 0.0001) return 1; feedback( 'Check what happens when you plug in $x=2$.' );