summaryrefslogtreecommitdiff
path: root/test/files/run/Course-2002-07.check
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-03-21 10:12:37 +0000
committerpaltherr <paltherr@epfl.ch>2003-03-21 10:12:37 +0000
commit5e7f6d941d16569f430fd4e078b32329c028ae21 (patch)
tree3299ae08c20cebcbdf0c93e22473c0a78581b5d2 /test/files/run/Course-2002-07.check
parent6a7bec093bbf8da427657fa84783dcc21c59fcc0 (diff)
downloadscala-5e7f6d941d16569f430fd4e078b32329c028ae21.tar.gz
scala-5e7f6d941d16569f430fd4e078b32329c028ae21.tar.bz2
scala-5e7f6d941d16569f430fd4e078b32329c028ae21.zip
- Added exercices
Diffstat (limited to 'test/files/run/Course-2002-07.check')
-rw-r--r--test/files/run/Course-2002-07.check35
1 files changed, 35 insertions, 0 deletions
diff --git a/test/files/run/Course-2002-07.check b/test/files/run/Course-2002-07.check
index d2e92a6463..bb69b26734 100644
--- a/test/files/run/Course-2002-07.check
+++ b/test/files/run/Course-2002-07.check
@@ -100,3 +100,38 @@ g'(x) = 2 * x * 1 + x * (2 * 1 + x * 0) + 3 * 1 + x * 0
g (3) = 27
g'(3) = 15
+ta(x) = x + 3
+tb(x) = x + 3
+tc(x) = x + 3
+td(x) = x + 3
+te(x) = 2 * x + 3
+tf(x) = 2 * x + 3
+tg(x) = 6 * x
+th(x) = x^6
+
+f4(x) = x^4 + 7 * x^3 + 20 * x^2 + 23 * x + 5
+f3(x) = 4 * x^3 + 21 * x^2 + 40 * x + 23
+f2(x) = 12 * x^2 + 42 * x + 40
+f1(x) = 24 * x + 42
+f0(x) = 24
+
+f4(0) = 5 ok
+f4(1) = 56 ok
+f4(2) = 203 ok
+f4(3) = 524 ok
+f4(4) = 1121 ok
+
+f3(0) = 23 ok
+f3(1) = 88 ok
+f3(2) = 219 ok
+f3(3) = 440 ok
+
+f2(0) = 40 ok
+f2(1) = 94 ok
+f2(2) = 172 ok
+
+f1(0) = 42 ok
+f1(1) = 66 ok
+
+f0(0) = 24 ok
+