summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrijeshcr2017-07-07 23:02:01 +0530
committerBrijeshcr2017-07-07 23:02:01 +0530
commite3bea007e2fae247b4d761bb50c7e28b16268405 (patch)
tree5e86dbf3f129aed509beb506d0926ce2427ff350 /tests
parentf577f255fd5c1d30bc770e9b053823ada8684528 (diff)
parentec1677606d3e636a47d4fd0853f83868b3953314 (diff)
downloadScilab2C_fossee_old-e3bea007e2fae247b4d761bb50c7e28b16268405.tar.gz
Scilab2C_fossee_old-e3bea007e2fae247b4d761bb50c7e28b16268405.tar.bz2
Scilab2C_fossee_old-e3bea007e2fae247b4d761bb50c7e28b16268405.zip
Array Declration for function
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci2
-rw-r--r--tests/unit_tests/test01_DCT/scilabcode/main.sci7
-rw-r--r--tests/unit_tests/test02_IDCT/scilabcode/testidct.sci7
3 files changed, 15 insertions, 1 deletions
diff --git a/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci b/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci
index 13624cf..c6e09a0 100644
--- a/tests/unit_tests/test001_LinearRegression/scilabcode/mainfunction.sci
+++ b/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/tests/unit_tests/test01_DCT/scilabcode/main.sci b/tests/unit_tests/test01_DCT/scilabcode/main.sci
new file mode 100644
index 0000000..33c4462
--- /dev/null
+++ b/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/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci b/tests/unit_tests/test02_IDCT/scilabcode/testidct.sci
new file mode 100644
index 0000000..deed0f9
--- /dev/null
+++ b/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