mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-08 17:10:22 +03:00
71bb67163c
Command used: `sed -i 's/\([-+*/><=]=\?\)[.$@^€$]/\1/g' **/*/*.catala_*` The overload test, of course, is kept unchanged and ensures that explicit operators still work.
26 lines
735 B
Plaintext
26 lines
735 B
Plaintext
## Article
|
|
|
|
```catala
|
|
declaration scope A:
|
|
context output x content decimal
|
|
context output y content decimal
|
|
context output z content decimal
|
|
context output a content decimal
|
|
|
|
scope A:
|
|
definition x equals 84.64866565265689623
|
|
definition y equals - 4.36829778705320654980
|
|
definition z equals 654265429805103220650980650.5705405106540
|
|
definition a equals x / (y * (x + y) * (x * x * z * z))
|
|
```
|
|
|
|
```catala-test-inline
|
|
$ catala Interpret -s A
|
|
[RESULT] Computation successful! Results:
|
|
[RESULT] a =
|
|
-0.000000000000000000000000000000000000000000000000000000000078695580959228473468…
|
|
[RESULT] x = 84.64866565265689623
|
|
[RESULT] y = -4.3682977870532065498
|
|
[RESULT] z = 654265429805103220650980650.570540510654
|
|
```
|