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