diff options
Diffstat (limited to '2.3-1/demos/Brijesh_Demos')
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_beta.sci | 12 | ||||
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_gamma.sci | 10 | ||||
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_gammaln.sci | 10 | ||||
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_isinf.sci | 6 | ||||
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_ndgrid.sci | 20 | ||||
-rw-r--r-- | 2.3-1/demos/Brijesh_Demos/test_range.sci | 8 |
6 files changed, 66 insertions, 0 deletions
diff --git a/2.3-1/demos/Brijesh_Demos/test_beta.sci b/2.3-1/demos/Brijesh_Demos/test_beta.sci new file mode 100644 index 00000000..a5465a77 --- /dev/null +++ b/2.3-1/demos/Brijesh_Demos/test_beta.sci @@ -0,0 +1,12 @@ +function test_beta + disp('Datatype: Double'); + i1 = [1 2 3; 4 5 6]; + i2 = [7 8 9; 10 11 12]; + o1 = beta(i1,i2); + disp(o1); + disp('Datatype: float'); + i3 = float([1 2 3; 4 5 6]); + i4 = float([7 8 9; 10 11 12]); + o2 = beta(i3,i4); + disp(o2); +endfunction diff --git a/2.3-1/demos/Brijesh_Demos/test_gamma.sci b/2.3-1/demos/Brijesh_Demos/test_gamma.sci new file mode 100644 index 00000000..4ca5f021 --- /dev/null +++ b/2.3-1/demos/Brijesh_Demos/test_gamma.sci @@ -0,0 +1,10 @@ +function test_gamma + disp('Datatype: Double'); + i1 = [1 2 3; 4 5 6]; + o1 = gamma(i1); + disp(o1); + disp('Datatype: float'); + i2 = float([1 2 3; 4 5 6]); + o2 = gamma(i2); + disp(o2); +endfunction diff --git a/2.3-1/demos/Brijesh_Demos/test_gammaln.sci b/2.3-1/demos/Brijesh_Demos/test_gammaln.sci new file mode 100644 index 00000000..a12a57bb --- /dev/null +++ b/2.3-1/demos/Brijesh_Demos/test_gammaln.sci @@ -0,0 +1,10 @@ +function test_gammaln + disp('Datatype: Double'); + i1 = [1 2 3; 4 5 6]; + o1 = gammaln(i1); + disp(o1); + disp('Datatype: float'); + i2 = float([1 2 3; 4 5 6]); + o2 = gammaln(i2); + disp(o2); +endfunction diff --git a/2.3-1/demos/Brijesh_Demos/test_isinf.sci b/2.3-1/demos/Brijesh_Demos/test_isinf.sci new file mode 100644 index 00000000..59be9759 --- /dev/null +++ b/2.3-1/demos/Brijesh_Demos/test_isinf.sci @@ -0,0 +1,6 @@ +function test_isinf + disp('Datatype: Double'); + i1 = %inf; + o1 = isinf(float(i1)); + disp(o1); +endfunction diff --git a/2.3-1/demos/Brijesh_Demos/test_ndgrid.sci b/2.3-1/demos/Brijesh_Demos/test_ndgrid.sci new file mode 100644 index 00000000..79f9a5d3 --- /dev/null +++ b/2.3-1/demos/Brijesh_Demos/test_ndgrid.sci @@ -0,0 +1,20 @@ +function test_ndgrid + disp('Datatype: Double'); + i1 = linspace(-1,1,10); + i2 = linspace(-1,1,3); + [o1, o2] = ndgrid(i1,i2); + disp(o1); + disp(o2); + disp('Datatype: float'); + i3 = linspace(-1,1,10); + i4 = linspace(-1,1,3); + [o3, o4] = ndgrid(float(i3),float(i4)); + disp(o3); + disp(o4); + disp('Datatype: Double Complex'); + i5 = [1 %i 3]; + i6 = [%i 3+%i 5*%i 9 7 0]; + [o5, o6] = ndgrid(i5,i6); + disp(o5); + disp(o6); +endfunction diff --git a/2.3-1/demos/Brijesh_Demos/test_range.sci b/2.3-1/demos/Brijesh_Demos/test_range.sci new file mode 100644 index 00000000..beca7a1a --- /dev/null +++ b/2.3-1/demos/Brijesh_Demos/test_range.sci @@ -0,0 +1,8 @@ +function test_range + disp('Datatype: Double'); + i1 = [1 2 3; 4 5 6; 7 8 9]; + i2 = 4; + [o1, o2] = range(i1, i2); + disp(o1); + disp(o2); +endfunction |