summaryrefslogtreecommitdiff
path: root/2.3-1/demos/Brijesh_Demos/test_beta.sci
diff options
context:
space:
mode:
authorBrijeshcr2017-08-10 19:38:31 +0530
committerBrijeshcr2017-08-10 19:38:31 +0530
commitdcfc88991cdfa7f8e53607094e8d26cae399b78e (patch)
tree477aa36aee917771677bbd6500fc57ca353f4d4f /2.3-1/demos/Brijesh_Demos/test_beta.sci
parent60dc24077bf42ddf1b8973915350dfabdf5b040a (diff)
downloadScilab2C-dcfc88991cdfa7f8e53607094e8d26cae399b78e.tar.gz
Scilab2C-dcfc88991cdfa7f8e53607094e8d26cae399b78e.tar.bz2
Scilab2C-dcfc88991cdfa7f8e53607094e8d26cae399b78e.zip
Added Gamma, gammaln, beta, isinf, ndgrid and range
Diffstat (limited to '2.3-1/demos/Brijesh_Demos/test_beta.sci')
-rw-r--r--2.3-1/demos/Brijesh_Demos/test_beta.sci12
1 files changed, 12 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