source: CIVL/examples/library/civlc/pow.cvl@ 8ed2d3b

1.23 2.0 acw/focus-triggers main test-branch
Last change on this file since 8ed2d3b was 50a0918, checked in by Manchun Zheng <zmanchun@…>, 10 years ago

added power function $pow to civlc.cvh; added tests as well.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@3035 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 138 bytes
Line 
1#include<civlc.cvh>
2
3$input double x;
4int 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.