]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9643 removing the sample files, use our unit tests instead
authorskodak <skodak>
Fri, 25 May 2007 06:54:48 +0000 (06:54 +0000)
committerskodak <skodak>
Fri, 25 May 2007 06:54:48 +0000 (06:54 +0000)
lib/evalmath/example.html [deleted file]
lib/evalmath/example.php [deleted file]
lib/evalmath/readme_moodle.txt

diff --git a/lib/evalmath/example.html b/lib/evalmath/example.html
deleted file mode 100644 (file)
index a5acdad..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">\r
-<html>\r
-<head>\r
-    <title>Example use of EvalMath</title>\r
-</head>\r
-\r
-<body>\r
-    <form method="post" action="">\r
-        y(x) = <input type="text" name="function" value="ln(100-99/(1+e^-(3x)))">\r
-        <input type="submit">\r
-    </form>\r
-       <table border="1">\r
-               <tr><th>x</th><th>y(x)</th>\r
-               <tr><td>-2</td><td>4.6027192880649</td></tr>\r
-               <tr><td>-1.8</td><td>4.6007089389783</td></tr>\r
-               <tr><td>-1.6</td><td>4.5970564127341</td></tr>\r
-               <tr><td>-1.4</td><td>4.5904358758421</td></tr>\r
-               <tr><td>-1.2</td><td>4.5784862928819</td></tr>\r
-               <tr><td>-1</td><td>4.5570805812015</td></tr>\r
-               <tr><td>-0.8</td><td>4.5192408021284</td></tr>\r
-               <tr><td>-0.6</td><td>4.4538441996618</td></tr>\r
-               <tr><td>-0.4</td><td>4.3448951339589</td></tr>\r
-               <tr><td>-0.2</td><td>4.1731553470264</td></tr>\r
-               <tr><td>0</td><td>3.9219733362813</td></tr>\r
-               <tr><td>0.2</td><td>3.5857394070469</td></tr>\r
-               <tr><td>0.4</td><td>3.1745496325453</td></tr>\r
-               <tr><td>0.6</td><td>2.7109297462397</td></tr>\r
-               <tr><td>0.8</td><td>2.2229028235855</td></tr>\r
-               <tr><td>1</td><td>1.7396169449748</td></tr>\r
-               <tr><td>1.2</td><td>1.2900869290353</td></tr>\r
-               <tr><td>1.4</td><td>0.90122953436788</td></tr>\r
-               <tr><td>1.6</td><td>0.59227355272826</td></tr>\r
-               <tr><td>1.8</td><td>0.36820000460355</td></tr>\r
-               <tr><td>2</td><td>0.21896659396653</td></tr>\r
-       </table>\r
-</body>\r
-</html>\r
diff --git a/lib/evalmath/example.php b/lib/evalmath/example.php
deleted file mode 100644 (file)
index 191bf28..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">\r
-<html>\r
-<head>\r
-    <title>Example use of EvalMath</title>\r
-</head>\r
-\r
-<body>\r
-    <form method="post" action="<?=$_SERVER['PHP_SELF']?>">\r
-        y(x) = <input type="text" name="function" value="<?=(isset($_POST['function']) ? htmlspecialchars($_POST['function']) : '')?>">\r
-        <input type="submit">\r
-    </form>\r
-    <?\r
-if (isset($_POST['function']) and $_POST['function']) {\r
-       include('evalmath.class.php');\r
-       $m = new EvalMath;\r
-       $m->suppress_errors = true;\r
-       if ($m->evaluate('y(x) = ' . $_POST['function'])) {\r
-               print "\t<table border=\"1\">\n";\r
-               print "\t\t<tr><th>x</th><th>y(x)</th>\n";\r
-               for ($x = -2; $x <= 2; $x+=.2) {\r
-                       $x = round($x, 2);\r
-                       print "\t\t<tr><td>$x</td><td>" . $m->e("y($x)") . "</td></tr>\n";\r
-               }\r
-               print "\t</table>\n";\r
-       } else {\r
-               print "\t<p>Could not evaluate function: " . $m->last_error . "</p>\n";\r
-       }\r
-}\r
-?>\r
-</body>\r
-</html>\r
index 00bc223824e8e73ed9eb3805f7c5d9ac315086ef..6f5a33fefa24ccd48d41e27da1b46c36c0335a85 100644 (file)
@@ -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