summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/testLinearAlgebra/testnorm/testnorm.sci6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/unit_tests/testLinearAlgebra/testnorm/testnorm.sci b/tests/unit_tests/testLinearAlgebra/testnorm/testnorm.sci
new file mode 100644
index 0000000..727a895
--- /dev/null
+++ b/tests/unit_tests/testLinearAlgebra/testnorm/testnorm.sci
@@ -0,0 +1,6 @@
+//* Function to find, norm(a,2)
+function testnorm()
+ a = [1,2,3;4,5,6;7,8,9] // Matrix
+ d = norm(a,2); // Calling NORM function.
+ disp(d) // display output
+endfunction