source:
CIVL/examples/library/civlc/pow.cvl@
8ed2d3b
| Last change on this file since 8ed2d3b was 50a0918, checked in by , 10 years ago | |
|---|---|
|
|
| File size: 138 bytes | |
| Rev | Line | |
|---|---|---|
| [50a0918] | 1 | #include<civlc.cvh> |
| 2 | ||
| 3 | $input double x; | |
| 4 | int main(){ | |
| 5 | double t=$pow(x, 0.5),y; | |
| 6 | y=t*t; | |
| 7 | $assert(x==y); | |
| 8 | y=$pow(t, 2); | |
| 9 | $assert(x==y); | |
| 10 | } |
Note:
See TracBrowser
for help on using the repository browser.
