source:
CIVL/examples/arithmetic/mathematical.cvl
| Last change on this file was b689afd, checked in by , 4 weeks ago | |
|---|---|
|
|
| File size: 182 bytes | |
| Rev | Line | |
|---|---|---|
| [a08e611] | 1 | #include <math.h> |
| 2 | #include <stdio.h> | |
| 3 | ||
| 4 | $input double x; | |
| 5 | ||
| 6 | void main() { | |
| 7 | double y = exp(x); | |
| 8 | double z = exp(1+x-1); | |
| 9 | ||
| 10 | printf("y=%f\n", y); | |
| 11 | printf("z=%f\n", z); | |
| [d980649] | 12 | $assert(y==z); |
| [a08e611] | 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
