summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests
diff options
context:
space:
mode:
authorBrijeshcr2017-07-07 23:02:01 +0530
committerBrijeshcr2017-07-07 23:02:01 +0530
commitab2d4e957b52edb2c04bd524a2c062c8058623c8 (patch)
treed53fb7cb52976c19d1b9c5380257226c09f65272 /2.3-1/tests/unit_tests
parentce61940a1398e66d9d09b81241789576c1ceca01 (diff)
parentccf9047acb6f74a67a23659aeb21e6bee6940df7 (diff)
downloadScilab2C-ab2d4e957b52edb2c04bd524a2c062c8058623c8.tar.gz
Scilab2C-ab2d4e957b52edb2c04bd524a2c062c8058623c8.tar.bz2
Scilab2C-ab2d4e957b52edb2c04bd524a2c062c8058623c8.zip
Array Declration for function
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