summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSandeep Gupta2017-07-07 00:29:35 +0530
committerSandeep Gupta2017-07-07 00:29:35 +0530
commit7a7f685a8436b456b246c49baf76bb8af930b214 (patch)
treee39f449c661d2b182a952e5b96e4e63ab80af685 /tests
parentea958d3c401761dcc24865d9639b2fab31038db8 (diff)
downloadScilab2C_fossee_old-7a7f685a8436b456b246c49baf76bb8af930b214.tar.gz
Scilab2C_fossee_old-7a7f685a8436b456b246c49baf76bb8af930b214.tar.bz2
Scilab2C_fossee_old-7a7f685a8436b456b246c49baf76bb8af930b214.zip
NORM
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