diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-11-10 17:31:41 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-11-10 17:31:41 +0100 |
| commit | 4840f480c8f255a6cf3b4eed291a00cea76b0cac (patch) | |
| tree | d9baf898c1e961bb8ee5d181c38cce93b062129b /example/input.txt | |
| parent | 037094a928653ed27f1f9d5497f637af1c5380e0 (diff) | |
feat(calc): supports function definition and evaluation
Diffstat (limited to 'example/input.txt')
| -rw-r--r-- | example/input.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/example/input.txt b/example/input.txt index 9c49d56..bd668e0 100644 --- a/example/input.txt +++ b/example/input.txt @@ -1,9 +1,9 @@ a = 10.05;; b = .95 (a + b) * 10 / 2 -x = 2_0 -y = 2! -z = y/2 -10 + 4(z / y)(x / 4) - -x^(-y) +f: x = x + 1 +x = 2 +# is 24 + 1 = 25 +f(24) +# must be 10 +x(5) |
