diff options
Diffstat (limited to 'demos/Brijesh_Demos/test_calerf.sci')
-rw-r--r-- | demos/Brijesh_Demos/test_calerf.sci | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/demos/Brijesh_Demos/test_calerf.sci b/demos/Brijesh_Demos/test_calerf.sci new file mode 100644 index 0000000..b700c5d --- /dev/null +++ b/demos/Brijesh_Demos/test_calerf.sci @@ -0,0 +1,18 @@ +function test_calerf + disp('Datatype: Double'); + i1 = [0.9 .754; .32 -.84]; + o1 = calerf(i1,0); + disp(o1); + disp(" "); + o2 = calerf(i1,1); + disp(o2); + disp(" "); + o3 = calerf(i1,2); + disp(o3); + disp(" "); + disp('Datatype: float'); + i2 = float([0.9 .754; .32 -.84]); + o4 = calerf(i2,2); + disp(o4); + disp(" "); +endfunction |