From 8bbb7e471ed22ed87f83b4109614d9540ebacd27 Mon Sep 17 00:00:00 2001 From: skodak Date: Fri, 25 May 2007 06:54:48 +0000 Subject: [PATCH] MDL-9643 removing the sample files, use our unit tests instead --- lib/evalmath/example.html | 37 ---------------------------------- lib/evalmath/example.php | 31 ---------------------------- lib/evalmath/readme_moodle.txt | 1 + 3 files changed, 1 insertion(+), 68 deletions(-) delete mode 100644 lib/evalmath/example.html delete mode 100644 lib/evalmath/example.php diff --git a/lib/evalmath/example.html b/lib/evalmath/example.html deleted file mode 100644 index a5acdada4ba..00000000000 --- a/lib/evalmath/example.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - Example use of EvalMath - - - -
- y(x) = - -
- - - - - - - - - - - - - - - - - - - - - - - -
xy(x)
-24.6027192880649
-1.84.6007089389783
-1.64.5970564127341
-1.44.5904358758421
-1.24.5784862928819
-14.5570805812015
-0.84.5192408021284
-0.64.4538441996618
-0.44.3448951339589
-0.24.1731553470264
03.9219733362813
0.23.5857394070469
0.43.1745496325453
0.62.7109297462397
0.82.2229028235855
11.7396169449748
1.21.2900869290353
1.40.90122953436788
1.60.59227355272826
1.80.36820000460355
20.21896659396653
- - diff --git a/lib/evalmath/example.php b/lib/evalmath/example.php deleted file mode 100644 index 191bf282a67..00000000000 --- a/lib/evalmath/example.php +++ /dev/null @@ -1,31 +0,0 @@ - - - - Example use of EvalMath - - - -
- y(x) = - -
- suppress_errors = true; - if ($m->evaluate('y(x) = ' . $_POST['function'])) { - print "\t\n"; - print "\t\t\n"; - for ($x = -2; $x <= 2; $x+=.2) { - $x = round($x, 2); - print "\t\t\n"; - } - print "\t
xy(x)
$x" . $m->e("y($x)") . "
\n"; - } else { - print "\t

Could not evaluate function: " . $m->last_error . "

\n"; - } -} -?> - - diff --git a/lib/evalmath/readme_moodle.txt b/lib/evalmath/readme_moodle.txt index 00bc223824e..6f5a33fefa2 100644 --- a/lib/evalmath/readme_moodle.txt +++ b/lib/evalmath/readme_moodle.txt @@ -4,6 +4,7 @@ Our changes: * implicit multiplication not allowed * new custom calc emulation functions * removed e and pi constants - not use din calc +* removed sample files To see all changes diff against version 1.1