2021-05-26 21:48:44 +03:00
|
|
|
## Article
|
|
|
|
|
|
|
|
```catala
|
|
|
|
declaration scope A:
|
2022-02-07 14:04:48 +03:00
|
|
|
context output x content decimal
|
|
|
|
context output y content decimal
|
|
|
|
context output z content decimal
|
2021-05-26 21:48:44 +03:00
|
|
|
|
|
|
|
scope A:
|
|
|
|
definition x equals 84.648665
|
|
|
|
definition y equals 4.368297
|
2022-12-07 17:37:26 +03:00
|
|
|
definition z equals x / y
|
2021-05-26 21:48:44 +03:00
|
|
|
```
|
2022-07-08 17:23:09 +03:00
|
|
|
|
2022-09-23 15:04:13 +03:00
|
|
|
```catala-test-inline
|
|
|
|
$ catala Interpret -s A
|
|
|
|
[RESULT] Computation successful! Results:
|
|
|
|
[RESULT] x = 84.648665
|
|
|
|
[RESULT] y = 4.368297
|
|
|
|
[RESULT] z = 19.37795552820698775747…
|
2022-07-08 17:23:09 +03:00
|
|
|
```
|
2023-04-14 18:59:08 +03:00
|
|
|
```catala-test-inline
|
|
|
|
$ catala Interpret_Lcalc -s A --avoid_exceptions --optimize
|
|
|
|
[RESULT] Computation successful! Results:
|
|
|
|
[RESULT] x = ESome 84.648665
|
|
|
|
[RESULT] y = ESome 4.368297
|
|
|
|
[RESULT] z = ESome 19.37795552820698775747…
|
|
|
|
```
|