From bdc480a7c9d96a9b59ef58b1252aef841673ac5f Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Tue, 19 Apr 2022 12:48:12 -0300 Subject: [PATCH] Update use-case-8 Co-authored-by: Ezequiel Bellver Co-authored-by: Juan Barmasch --- doc/examples/use-case-8.b | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/examples/use-case-8.b b/doc/examples/use-case-8.b index ee36fd6..d2c17c6 100644 --- a/doc/examples/use-case-8.b +++ b/doc/examples/use-case-8.b @@ -1,2 +1,6 @@ -fun f = f(3) * x * 4 + 3; -fun g = f(3) + f'(3)*(x-3) + f''(3)/2 * (x-3)^2 + f'''(3) / 6 * (x-3)^3 + f''''(3) / 24 * (x-3)^4; \ No newline at end of file +fun f = x^2; +fun g = derivative f in (x); +fun h = f(x) - int f (0 ~ 1); +for (var i = 0; i <= 1; i += 0.1) { + print(g(i)); +} \ No newline at end of file