diff options
author | Sandeep Gupta | 2017-07-07 02:30:25 +0530 |
---|---|---|
committer | Sandeep Gupta | 2017-07-07 02:30:25 +0530 |
commit | 3afee83ada15920249b2ff15fc7c5ee8970bb1cb (patch) | |
tree | b846dcdd0d8d9637b6ece06d56e01a62b5b86ed3 /src | |
parent | eaa5580ddae3d9d85720dce53796c4035793c2a6 (diff) | |
download | Scilab2C_fossee_old-3afee83ada15920249b2ff15fc7c5ee8970bb1cb.tar.gz Scilab2C_fossee_old-3afee83ada15920249b2ff15fc7c5ee8970bb1cb.tar.bz2 Scilab2C_fossee_old-3afee83ada15920249b2ff15fc7c5ee8970bb1cb.zip |
SPEC Function
Diffstat (limited to 'src')
-rw-r--r-- | src/c/string/disp/zdispa.c | 2 | ||||
-rw-r--r-- | src/c/string/disp/zdisps.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/c/string/disp/zdispa.c b/src/c/string/disp/zdispa.c index bc71de4..94b24e9 100644 --- a/src/c/string/disp/zdispa.c +++ b/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/src/c/string/disp/zdisps.c b/src/c/string/disp/zdisps.c index c4ec137..4a040cd 100644 --- a/src/c/string/disp/zdisps.c +++ b/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; } |