From 85bde50698bbdfd891ef194cd700d9a659bd50cd Mon Sep 17 00:00:00 2001 From: rupak Date: Fri, 9 Aug 2019 18:23:51 +0530 Subject: first commit --- demos/c_sum.dem.sce | 16 ++++++++++++++++ demos/cpp_find.dem.sce | 18 ++++++++++++++++++ demos/fortran_sum.dem.sce | 16 ++++++++++++++++ demos/scilab_sum.dem.sce | 15 +++++++++++++++ demos/toolbox_skeleton.dem.gateway.sce | 17 +++++++++++++++++ 5 files changed, 82 insertions(+) create mode 100644 demos/c_sum.dem.sce create mode 100644 demos/cpp_find.dem.sce create mode 100644 demos/fortran_sum.dem.sce create mode 100644 demos/scilab_sum.dem.sce create mode 100644 demos/toolbox_skeleton.dem.gateway.sce (limited to 'demos') diff --git a/demos/c_sum.dem.sce b/demos/c_sum.dem.sce new file mode 100644 index 0000000..68ea6d0 --- /dev/null +++ b/demos/c_sum.dem.sce @@ -0,0 +1,16 @@ +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + + +function demo_c_sum() + + mode(-1); + lines(0); + + disp("c_sum(3,4)"); + disp(c_sum(3,4)); + +endfunction + +demo_c_sum(); +clear demo_c_sum; diff --git a/demos/cpp_find.dem.sce b/demos/cpp_find.dem.sce new file mode 100644 index 0000000..5614737 --- /dev/null +++ b/demos/cpp_find.dem.sce @@ -0,0 +1,18 @@ +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + + +function demo_cpp_find() + mode(-1); + lines(0); + + disp("cpp_find(''Scilab is a numerical computational package'',''numerical'')"); + disp("position : " + string(cpp_find("Scilab is a numerical computational package","numerical"))); + disp("cpp_find(''Scilab is a numerical computational package'',''package'')"); + disp("position: " + string(cpp_find("Scilab is a numerical computational package","package"))); + +endfunction + + +demo_cpp_find(); +clear demo_cpp_find; \ No newline at end of file diff --git a/demos/fortran_sum.dem.sce b/demos/fortran_sum.dem.sce new file mode 100644 index 0000000..de96506 --- /dev/null +++ b/demos/fortran_sum.dem.sce @@ -0,0 +1,16 @@ +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +function demo_fortran_sum() + + mode(-1); + lines(0); + + disp("fortran_sum(3,4)"); + disp(fortran_sum(3,4)); + +endfunction + +demo_fortran_sum(); +clear demo_fortran_sum; + diff --git a/demos/scilab_sum.dem.sce b/demos/scilab_sum.dem.sce new file mode 100644 index 0000000..6e872aa --- /dev/null +++ b/demos/scilab_sum.dem.sce @@ -0,0 +1,15 @@ +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +function demo_scilab_sum() + + mode(-1); + lines(0); + + disp("scilab_sum(3,4)"); + disp(scilab_sum(3,4)); + +endfunction + + +demo_scilab_sum(); +clear demo_scilab_sum; \ No newline at end of file diff --git a/demos/toolbox_skeleton.dem.gateway.sce b/demos/toolbox_skeleton.dem.gateway.sce new file mode 100644 index 0000000..09d6bf6 --- /dev/null +++ b/demos/toolbox_skeleton.dem.gateway.sce @@ -0,0 +1,17 @@ +// +// This file is released under the 3-clause BSD license. See COPYING-BSD. + +function subdemolist = demo_gateway() + demopath = get_absolute_file_path("toolbox_skeleton.dem.gateway.sce"); + + subdemolist = ["sum with Scilab" ,"scilab_sum.dem.sce"; .. + "A c sum " ,"c_sum.dem.sce" ; .. + "The sum with fortran" ,"fortran_sum.dem.sce" ; .. + "A find in cpp" ,"cpp_find.dem.sce" ; ]; + + subdemolist(:,2) = demopath + subdemolist(:,2); + +endfunction + +subdemolist = demo_gateway(); +clear demo_gateway; // remove demo_gateway on stack -- cgit