[Bugzilla] [Bug 8349] Samuel GOUGEON has changed keywords, bug_file_loc, component

bugzilla.admin at scilab.org bugzilla.admin at scilab.org
Fri Mar 23 20:26:57 CET 2018


http://bugzilla.scilab.org/show_bug.cgi?id=8349
--------- Bug Summary -----------
write_csv() fails to support writting complexes with %nan or %inf parts

---------- Changed by ------------
sgougeon at free.fr

---------- What changed ----------
keywords, bug_file_loc, component


Samuel GOUGEON <sgougeon at free.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|Fix_me_for_Scilab_5.4       |have_nonregression_test
                URL|1) write_csv() supports     |
                   |complexes without any       |
                   |problem when there is no    |
                   |Nan nor Inf real or         |
                   |imaginary parts:-->m =      |
                   |grand(3,3,"uin",-9,9);-->wr |
                   |ite_csv(m*(1+%i),"test.txt" |
                   |)-->mgetl("test.txt") ans   |
                   |=! 7+%i*7    0              |
                   |-5-%i*5        !! 9+%i*9    |
                   |     4+%i*4 -3-%i*3  !!     |
                   |9+%i*9       9+%i*9  4+%i*4 |
                   | !2) -->write_csv([ 1       |
                   |%nan*(1+%i)],"test.txt")--> |
                   |mgetl("test.txt") ans  =  1 |
                   |    Na+%i*Nan   // The      |
                   |first Nan is trimmed,       |
                   |BUT-->write_csv([ 1.1       |
                   |%nan*(1+%i)],"test.txt")--> |
                   |mgetl("test.txt") ans  =    |
                   |1,1     Nan+%i*Nan   //     |
                   |Now, it is ok!3) Same thing |
                   |with %inf:-->write_csv([ 1  |
                   |%inf*(1+%i)],"test.txt")--> |
                   |mgetl("test.txt") ans  =  1 |
                   |   In+%i*Inf                |
                   |-->write_csv([ 1.1          |
                   |%inf*(1+%i)],"test.txt")--> |
                   |mgetl("test.txt") ans  =    |
                   |1,1       Inf+%i*Inf    4)  |
                   |Any imaginary part set to   |
                   |%nan or %inf overwrites the |
                   |real part with              |
                   |%nan:-->write_csv([ 1.1     |
                   |1+%i*%inf],"test.txt")      |
                   |-->mgetl("test.txt") ans  = |
                   | 1,1  Nan+%i*Inf            |
          Component|Input / output              |Data import/export

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180323/e865eef9/attachment.htm>


More information about the Bugzilla mailing list