summaryrefslogtreecommitdiff
path: root/tests/unit_tests/double/test_Det.sci
diff options
context:
space:
mode:
authorSandeep Gupta2017-06-18 23:55:40 +0530
committerSandeep Gupta2017-06-18 23:55:40 +0530
commit277d1edfa17bf3719d90ddbac8e31f6181e952c3 (patch)
tree0661f1f52af0a0fd654edd4984c30e57037303c6 /tests/unit_tests/double/test_Det.sci
downloadScilab2C_fossee_old-277d1edfa17bf3719d90ddbac8e31f6181e952c3.tar.gz
Scilab2C_fossee_old-277d1edfa17bf3719d90ddbac8e31f6181e952c3.tar.bz2
Scilab2C_fossee_old-277d1edfa17bf3719d90ddbac8e31f6181e952c3.zip
First commit
Diffstat (limited to 'tests/unit_tests/double/test_Det.sci')
-rw-r--r--tests/unit_tests/double/test_Det.sci15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/unit_tests/double/test_Det.sci b/tests/unit_tests/double/test_Det.sci
new file mode 100644
index 0000000..cf92315
--- /dev/null
+++ b/tests/unit_tests/double/test_Det.sci
@@ -0,0 +1,15 @@
+function test_Det()
+
+ a = [1 2 3; 4 %pi 5; 4.5 -3 2];
+ disp(det(a));
+
+ b = %i * [1 2 3; 4 %pi 5; 4.5 -3 2];
+ disp(det(b));
+
+
+ disp(det(5));
+
+ disp(det(%i));
+endfunction
+
+