diff options
author | Sandeep Gupta | 2017-07-07 02:44:54 +0530 |
---|---|---|
committer | Sandeep Gupta | 2017-07-07 02:44:54 +0530 |
commit | 4be41c665ffe107536b4259c8e85c109cc0c2f07 (patch) | |
tree | 9b88e75a899163943de6ef4f815078f4605217db | |
parent | ea8a50994bd3a260cd1656713acdc397a57fc680 (diff) | |
download | Scilab2C-4be41c665ffe107536b4259c8e85c109cc0c2f07.tar.gz Scilab2C-4be41c665ffe107536b4259c8e85c109cc0c2f07.tar.bz2 Scilab2C-4be41c665ffe107536b4259c8e85c109cc0c2f07.zip |
SQROOT
-rw-r--r-- | 2.3-1/jar/scilab_en_US_help.jar | bin | 90519 -> 90519 bytes | |||
-rw-r--r-- | 2.3-1/src/c/linearAlgebra/sqroot/dsqroota.c | 2 | ||||
-rw-r--r-- | 2.3-1/tests/unit_tests/testLinearAlgebra/testsqroot/testsqroot.sci | 5 |
3 files changed, 6 insertions, 1 deletions
diff --git a/2.3-1/jar/scilab_en_US_help.jar b/2.3-1/jar/scilab_en_US_help.jar Binary files differindex 459cfbb4..cef95e2f 100644 --- a/2.3-1/jar/scilab_en_US_help.jar +++ b/2.3-1/jar/scilab_en_US_help.jar diff --git a/2.3-1/src/c/linearAlgebra/sqroot/dsqroota.c b/2.3-1/src/c/linearAlgebra/sqroot/dsqroota.c index a9062e65..1ba97268 100644 --- a/2.3-1/src/c/linearAlgebra/sqroot/dsqroota.c +++ b/2.3-1/src/c/linearAlgebra/sqroot/dsqroota.c @@ -99,7 +99,7 @@ void dsqroota(double *inp,int row,int col, double *out){ printf("\n"); }*/ /*sqrt of S*/ - printf("%d ",rk); + //printf("%d ",rk); for(i=0;i<rk;i++){ for(j=0;j<rk;j++){ A[i*rk+j] = sqrt(S[i*row+j]); diff --git a/2.3-1/tests/unit_tests/testLinearAlgebra/testsqroot/testsqroot.sci b/2.3-1/tests/unit_tests/testLinearAlgebra/testsqroot/testsqroot.sci new file mode 100644 index 00000000..63db1f49 --- /dev/null +++ b/2.3-1/tests/unit_tests/testLinearAlgebra/testsqroot/testsqroot.sci @@ -0,0 +1,5 @@ +function testsqroot() + a = [1,2,3;4,5,6;7,8,9]; + e = sqroot(a); + disp(e) +endfunction |