diff options
author | Brijeshcr | 2017-07-07 17:09:19 +0530 |
---|---|---|
committer | Brijeshcr | 2017-07-07 17:09:19 +0530 |
commit | 282cbe9542cddac862b88d3431a18db9df781ba7 (patch) | |
tree | 2f3f8ed5c72b77cfec057c1e1511ecd0a9467d54 /2.3-1/src/c/string | |
parent | 46da80312c4bc66bb5f16044c5c5597ac259d419 (diff) | |
parent | 8106d4ce6960cfd63c3a42171fdf5d52e46ccb06 (diff) | |
download | Scilab2C-282cbe9542cddac862b88d3431a18db9df781ba7.tar.gz Scilab2C-282cbe9542cddac862b88d3431a18db9df781ba7.tar.bz2 Scilab2C-282cbe9542cddac862b88d3431a18db9df781ba7.zip |
Linear Algebra changes by Sandeep
Diffstat (limited to '2.3-1/src/c/string')
-rw-r--r-- | 2.3-1/src/c/string/disp/zdispa.c | 2 | ||||
-rw-r--r-- | 2.3-1/src/c/string/disp/zdisps.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/2.3-1/src/c/string/disp/zdispa.c b/2.3-1/src/c/string/disp/zdispa.c index bc71de4b..94b24e98 100644 --- a/2.3-1/src/c/string/disp/zdispa.c +++ b/2.3-1/src/c/string/disp/zdispa.c @@ -16,7 +16,7 @@ double zdispa (doubleComplex* in, int rows, int columns){ int i = 0,j = 0; for (i = 0; i < rows; ++i) { - for (j=0;j<columns;j++) printf(" %1.20lf + %1.20lfi " ,zreals(in[i+j*rows]) ,zimags(in[i+j*rows])); + for (j=0;j<columns;j++) printf(" %e + %ei " ,zreals(in[i+j*rows]) ,zimags(in[i+j*rows])); printf("\n"); } return 0; diff --git a/2.3-1/src/c/string/disp/zdisps.c b/2.3-1/src/c/string/disp/zdisps.c index c4ec137f..4a040cd7 100644 --- a/2.3-1/src/c/string/disp/zdisps.c +++ b/2.3-1/src/c/string/disp/zdisps.c @@ -14,6 +14,6 @@ double zdisps (doubleComplex in) { - printf(" %1.20f + %1.20fi \n" ,zreals(in) ,zimags(in)); + printf(" %e + %ei \n" ,zreals(in) ,zimags(in)); return 0; } |