summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests
diff options
context:
space:
mode:
authorukashanoor2017-07-07 17:12:14 +0530
committerukashanoor2017-07-07 17:12:14 +0530
commitccf9047acb6f74a67a23659aeb21e6bee6940df7 (patch)
treecdca6ec90248ba07fe151926ad3b80c84b59167e /2.3-1/tests/unit_tests
parente9de337a34e123749927039f7011fb30fc96f7c9 (diff)
downloadScilab2C-ccf9047acb6f74a67a23659aeb21e6bee6940df7.tar.gz
Scilab2C-ccf9047acb6f74a67a23659aeb21e6bee6940df7.tar.bz2
Scilab2C-ccf9047acb6f74a67a23659aeb21e6bee6940df7.zip
array declaration
Diffstat (limited to '2.3-1/tests/unit_tests')
-rw-r--r--2.3-1/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci2
-rw-r--r--2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci7
-rw-r--r--2.3-1/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci7
3 files changed, 15 insertions, 1 deletions
diff --git a/2.3-1/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci b/2.3-1/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci
index 13624cfb..c6e09a0c 100644
--- a/2.3-1/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci
+++ b/2.3-1/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci
@@ -1,4 +1,4 @@
-//SCI2C: DEFAULT_PRECISION= DOUBLE
+//SCI2C: DEFAULT_PRECISION= FLOAT
function mainfunction()
diff --git a/2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci b/2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci
new file mode 100644
index 00000000..33c44622
--- /dev/null
+++ b/2.3-1/tests/unit_tests/test01_DCT/scilabcode/main.sci
@@ -0,0 +1,7 @@
+//SCI2C: DEFAULT_PRECISION= FLOAT
+//test for discrete cosine tranform using precision as float
+function main()
+ b=([5 2 6 7;1 9 7 6+%i])
+ y=dct(b,1) //calling dct
+ disp(y)
+endfunction
diff --git a/2.3-1/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci b/2.3-1/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci
new file mode 100644
index 00000000..deed0f99
--- /dev/null
+++ b/2.3-1/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci
@@ -0,0 +1,7 @@
+//SCI2C: DEFAULT_PRECISION= FLOAT
+//test for inverse discrete cosine tranfrom
+function testidct()
+ b=[1 2 3;4 5 6+%i] //declaring complex matrix
+ y=idct(b) //calling idct
+ disp(y)
+endfunction