diff options
-rw-r--r-- | jar/scilab_en_US_help.jar | bin | 90519 -> 90519 bytes | |||
-rw-r--r-- | src/c/linearAlgebra/sqroot/dsqroota.c | 2 | ||||
-rw-r--r-- | tests/unit_tests/testLinearAlgebra/testsqroot/testsqroot.sci | 5 |
3 files changed, 6 insertions, 1 deletions
diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar Binary files differindex 459cfbb4..cef95e2f 100644 --- a/jar/scilab_en_US_help.jar +++ b/jar/scilab_en_US_help.jar diff --git a/src/c/linearAlgebra/sqroot/dsqroota.c b/src/c/linearAlgebra/sqroot/dsqroota.c index a9062e65..1ba97268 100644 --- a/src/c/linearAlgebra/sqroot/dsqroota.c +++ b/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/tests/unit_tests/testLinearAlgebra/testsqroot/testsqroot.sci b/tests/unit_tests/testLinearAlgebra/testsqroot/testsqroot.sci new file mode 100644 index 00000000..63db1f49 --- /dev/null +++ b/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 |