source:
CIVL/examples/arithmetic/mathematical.cvl
| Last change on this file was b689afd, checked in by , 4 weeks ago | |
|---|---|
|
|
| File size: 182 bytes | |
| Line | |
|---|---|
| 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); |
| 12 | $assert(y==z); |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
