summaryrefslogtreecommitdiff
path: root/2.3-1/tests/unit_tests/double/test_Det.sci
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/tests/unit_tests/double/test_Det.sci')
-rw-r--r--2.3-1/tests/unit_tests/double/test_Det.sci15
1 files changed, 15 insertions, 0 deletions
diff --git a/2.3-1/tests/unit_tests/double/test_Det.sci b/2.3-1/tests/unit_tests/double/test_Det.sci
new file mode 100644
index 00000000..cf923152
--- /dev/null
+++ b/2.3-1/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
+
+