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_Erfinv.sci10
-rw-r--r--2.3-1/demos/RPi/RPi.dem.gateway.sce1
-rw-r--r--2.3-1/demos/RPi/test_lcd.dem.sce19
-rw-r--r--2.3-1/demos/scilab2c.dem.gateway.sce6
4 files changed, 33 insertions, 3 deletions
diff --git a/2.3-1/demos/Brijesh_Demos/Test_Erfinv.sci b/2.3-1/demos/Brijesh_Demos/Test_Erfinv.sci
new file mode 100644
index 00000000..99a8683a
--- /dev/null
+++ b/2.3-1/demos/Brijesh_Demos/Test_Erfinv.sci
@@ -0,0 +1,10 @@
+function Test_Erfinv
+ disp('Datatype: Double');
+ i1 = [12 0.6 -2 -0.75];
+ o1 = erfinv(i1);
+ disp(o1);
+ disp('Datatype: float');
+ i2 = float([5 0.35 -1 -.97 -6]);
+ o2 = erf(i2);
+ disp(o2);
+endfunction
diff --git a/2.3-1/demos/RPi/RPi.dem.gateway.sce b/2.3-1/demos/RPi/RPi.dem.gateway.sce
index 29d4c710..c125e9c7 100644
--- a/2.3-1/demos/RPi/RPi.dem.gateway.sce
+++ b/2.3-1/demos/RPi/RPi.dem.gateway.sce
@@ -11,6 +11,7 @@
subdemolist = ["Wait and Blink","test_wait_and_blink.dem.sce";
+ "LCD","test_lcd.dem.sce"
];
global SCI2CHOME;
diff --git a/2.3-1/demos/RPi/test_lcd.dem.sce b/2.3-1/demos/RPi/test_lcd.dem.sce
new file mode 100644
index 00000000..2bd19516
--- /dev/null
+++ b/2.3-1/demos/RPi/test_lcd.dem.sce
@@ -0,0 +1,19 @@
+// Copyright (C) 2017 - IIT Bombay - FOSSEE
+//
+// This file must be used under the terms of the CeCILL.
+// This source file is licensed as described in the file COPYING, which
+// you should have received as part of this distribution. The terms
+// are also available at
+// http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+// Author: Jorawar Singh, Sandeep Gupta
+// Organization: FOSSEE, IIT Bombay
+// Email: toolbox@scilab.in
+//
+
+lines(0);
+
+global SCI2CHOME
+
+scilab2c(SCI2CHOME + "/tests/unit_tests/test_RPi/lcd.sci", TMPDIR,SCI2CHOME + "/tests/unit_tests/test_RPi/", "All", "make" ,"RPi", "uno");
+
+editor([TMPDIR+"/main.c"]);
diff --git a/2.3-1/demos/scilab2c.dem.gateway.sce b/2.3-1/demos/scilab2c.dem.gateway.sce
index 7e987879..1e2a6c7f 100644
--- a/2.3-1/demos/scilab2c.dem.gateway.sce
+++ b/2.3-1/demos/scilab2c.dem.gateway.sce
@@ -22,7 +22,7 @@ subdemolist =["Linear Algebra","LinearAlgebra/LinearAlgebra.dem.gateway.sce";
"Symbols", "Symbols.dem.sce";
"Jacobi functions","Jacobi.dem.sce";
"String Functions","string.dem.sce";
- "Ffilt coeff. of FIR low pass filter","ffilt.dem.sce";
- "Design of FIR linear phase filters using freq. samping technique","fsfirlin.dem.sce";
- "Samples of sinc function","filt_sinc.dem.sce";]
+ "Ffilt coeff. of FIR low pass filter","ffilt.dem.sce";
+ "Design of FIR linear phase filters using freq. samping technique","fsfirlin.dem.sce";
+ "Samples of sinc function","filt_sinc.dem.sce";]
subdemolist(:,2) = demopath + subdemolist(:,2);