summaryrefslogtreecommitdiff
path: root/2.3-1/demos/Brijesh_Demos/test_erf.sci
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/demos/Brijesh_Demos/test_erf.sci')
-rw-r--r--2.3-1/demos/Brijesh_Demos/test_erf.sci10
1 files changed, 10 insertions, 0 deletions
diff --git a/2.3-1/demos/Brijesh_Demos/test_erf.sci b/2.3-1/demos/Brijesh_Demos/test_erf.sci
new file mode 100644
index 00000000..5cebb253
--- /dev/null
+++ b/2.3-1/demos/Brijesh_Demos/test_erf.sci
@@ -0,0 +1,10 @@
+function test_erf
+ disp('Datatype: Double');
+ i1 = [1 2 .5; 7 .8 .9];
+ o1 = erf(i1);
+ disp(o1);
+ disp('Datatype: float');
+ i2 = float([1 2 .5; 7 .8 .9]);
+ o2 = erf(i2);
+ disp(o2);
+endfunction