source:
CIVL/mods/dev.civl.com/examples/library/civlc/pow.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 138 bytes | |
| Line | |
|---|---|
| 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.
