summaryrefslogtreecommitdiff
path: root/2.3-1/demos
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/demos')
-rw-r--r--2.3-1/demos/Brijesh_Demos/test_sind.sci10
-rw-r--r--2.3-1/demos/Brijesh_Demos/test_tand.sci10
2 files changed, 20 insertions, 0 deletions
diff --git a/2.3-1/demos/Brijesh_Demos/test_sind.sci b/2.3-1/demos/Brijesh_Demos/test_sind.sci
new file mode 100644
index 00000000..7f391663
--- /dev/null
+++ b/2.3-1/demos/Brijesh_Demos/test_sind.sci
@@ -0,0 +1,10 @@
+function test_sind
+ disp('Datatype: Double');
+ i1 = [0 30 45; 60 80 120] ;
+ o1 = sind(i1);
+ disp(o1);
+ disp('Datatype: float');
+ i2 = float([0 30 45; 60 80 120]);
+ o2 = sind(i2);
+ disp(o2);
+endfunction
diff --git a/2.3-1/demos/Brijesh_Demos/test_tand.sci b/2.3-1/demos/Brijesh_Demos/test_tand.sci
new file mode 100644
index 00000000..3143a88a
--- /dev/null
+++ b/2.3-1/demos/Brijesh_Demos/test_tand.sci
@@ -0,0 +1,10 @@
+function test_tand
+ disp('Datatype: Double');
+ i1 = [0 30 45; 60 80 120] ;
+ o1 = tand(i1);
+ disp(o1);
+ disp('Datatype: float');
+ i2 = float([0 30 45; 60 80 120]);
+ o2 = tand(i2);
+ disp(o2);
+endfunction