summaryrefslogtreecommitdiff
path: root/2.3-1/demos/Brijesh_Demos/test_gamma.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_gamma.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_gamma.sci')
-rw-r--r--2.3-1/demos/Brijesh_Demos/test_gamma.sci10
1 files changed, 10 insertions, 0 deletions
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