Re: [Scilab-users] display of complex/not real numbers, again

2019-09-18 Thread Stéphane Mottelet
Hello, Le 13/09/2019 à 12:51, Stéphane Mottelet a écrit : Le 13/09/2019 à 12:45, Samuel Gougeon a écrit : Hello, To me, as already claimed there , it's clear that, for a

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-17 Thread Stéphane Mottelet
Le 17/09/2019 à 15:19, Federico Miyara a écrit : Stéphane, --> x=1:0.1:2  x  =    1.   1.1   1.2   1.3   1.4   1.5   1.6   1.700   1.8 1.9   2. nothing triggers it in actual Scilab version. This was just an example of what could be displayed after the patch I propose (in its last

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-17 Thread Federico Miyara
Stéphane, --> x=1:0.1:2  x  =    1.   1.1   1.2   1.3   1.4   1.5   1.6   1.700   1.8 1.9   2. However I get this:   > x=1:0.1:2  x  =    1.   1.1   1.2   1.3   1.4   1.5   1.6   1.7   1.8   1.9   2. But it is true that x(7) - 1.7 yields 2.220D-16. Here there are two problems, an

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Stéphane Mottelet
Le 13/09/2019 à 17:38, Stéphane Mottelet a écrit : Le 13/09/2019 à 17:32, Samuel Gougeon a écrit : Le 13/09/2019 à 17:20, Stéphane Mottelet a écrit : Le 13/09/2019 à 17:13, Samuel Gougeon a écrit : Le 13/09/2019 à 16:59, Stéphane Mottelet a écrit : Le 13/09/2019 à 16:52, Samuel Gougeon

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Stéphane Mottelet
Le 13/09/2019 à 17:20, Stéphane Mottelet a écrit : Le 13/09/2019 à 17:13, Samuel Gougeon a écrit : Le 13/09/2019 à 16:59, Stéphane Mottelet a écrit : Le 13/09/2019 à 16:52, Samuel Gougeon a écrit : Le 13/09/2019 à 14:22, Stéphane Mottelet a écrit : However, as I already said it

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Stéphane Mottelet
Le 13/09/2019 à 17:32, Samuel Gougeon a écrit : Le 13/09/2019 à 17:20, Stéphane Mottelet a écrit : Le 13/09/2019 à 17:13, Samuel Gougeon a écrit : Le 13/09/2019 à 16:59, Stéphane Mottelet a écrit : Le 13/09/2019 à 16:52, Samuel Gougeon a écrit : Le 13/09/2019 à 14:22, Stéphane Mottelet a

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Samuel Gougeon
Le 13/09/2019 à 17:20, Stéphane Mottelet a écrit : Le 13/09/2019 à 17:13, Samuel Gougeon a écrit : Le 13/09/2019 à 16:59, Stéphane Mottelet a écrit : Le 13/09/2019 à 16:52, Samuel Gougeon a écrit : Le 13/09/2019 à 14:22, Stéphane Mottelet a écrit : However, as I already said it

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Stéphane Mottelet
Le 13/09/2019 à 17:13, Samuel Gougeon a écrit : Le 13/09/2019 à 16:59, Stéphane Mottelet a écrit : Le 13/09/2019 à 16:52, Samuel Gougeon a écrit : Le 13/09/2019 à 14:22, Stéphane Mottelet a écrit : However, as I already said it elsewhere, some glitches such as the following  one do occur

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Samuel Gougeon
Le 13/09/2019 à 16:59, Stéphane Mottelet a écrit : Le 13/09/2019 à 16:52, Samuel Gougeon a écrit : Le 13/09/2019 à 14:22, Stéphane Mottelet a écrit : However, as I already said it elsewhere, some glitches such as the following  one do occur (see the display of whole x) --> x=1:0.1:2  x 

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Stéphane Mottelet
Le 13/09/2019 à 16:52, Samuel Gougeon a écrit : Le 13/09/2019 à 14:22, Stéphane Mottelet a écrit : However, as I already said it elsewhere, some glitches such as the following  one do occur (see the display of whole x) --> x=1:0.1:2  x  =    1.   1.1   1.2   1.3   1.4   1.5   1.6  

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Samuel Gougeon
Le 13/09/2019 à 14:22, Stéphane Mottelet a écrit : However, as I already said it elsewhere, some glitches such as the following  one do occur (see the display of whole x) --> x=1:0.1:2  x  =    1.   1.1   1.2   1.3   1.4   1.5   1.6   1.700   1.8 1.9   2. I agree with Christophe. This

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Stéphane Mottelet
However, as I already said it elsewhere, some glitches such as the following  one do occur (see the display of whole x) --> x=1:0.1:2  x  =    1.   1.1   1.2   1.3   1.4   1.5   1.6   1.700   1.8 1.9   2. --> x(7)  ans  =    1.6 --> x(7)-1.6  ans  =    0. --> x(8)  ans  =   

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Stéphane Mottelet
Le 13/09/2019 à 13:07, Samuel Gougeon a écrit : Le 12/09/2019 à 18:55, Stéphane Mottelet a écrit : I prefer the display after applying https://codereview.scilab.org/#/c/20981/: --> x0=%pi/4;h=%eps/2  h  =    1.110D-16 --> cos(x0+%i*h)  ans  =    0.7071068 - 7.850D-17i However, we could

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Samuel Gougeon
Le 12/09/2019 à 18:55, Stéphane Mottelet a écrit : I prefer the display after applying https://codereview.scilab.org/#/c/20981/: --> x0=%pi/4;h=%eps/2  h  =    1.110D-16 --> cos(x0+%i*h)  ans  =    0.7071068 - 7.850D-17i However, we could discuss if the arbitrary switch to "e" mode is

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Stéphane Mottelet
Le 13/09/2019 à 12:45, Samuel Gougeon a écrit : Hello, To me, as already claimed there , it's clear that, for a complex-encoded number, not displaying its null imaginary part is a

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Samuel Gougeon
Hello, To me, as already claimed there , it's clear that, for a complex-encoded number, not displaying its null imaginary part is a bug, and the proposed patch is clearly welcome as well. Another regression very close to this one, but

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-13 Thread Stéphane Mottelet
If Windows users want to test the patch, I have prepared a Windows build of patched Scilab at the folowing URL : http://www.utc.fr/~mottelet/scilab/download/master/scilab-branch-master-6cdd3ce0d62c632cd428b71440b0371a7731dbae_x64.exe S. Le 12/09/2019 à 18:55, Stéphane Mottelet a écrit : I

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-12 Thread Stéphane Mottelet
I prefer the display after applying https://codereview.scilab.org/#/c/20981/: --> x0=%pi/4;h=%eps/2  h  =    1.110D-16 --> cos(x0+%i*h)  ans  =    0.7071068 - 7.850D-17i However, we could discuss if the arbitrary switch to "e" mode is desirable or not, but since Scilab 6.0 we have got used

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-12 Thread Stéphane Mottelet
Le 12/09/2019 à 11:55, Antoine ELIAS a écrit : Hello Stéphane, In Scilab 6.0.2 without format("e", 24) --> h = %eps/128, x0=%pi/4  h  =    1.735D-18  x0  =    0.7853982 --> (cos(x0+h)-cos(x0-h))/2/h  ans  =    0. --> cos(x0+%i*h)  ans  =    0.7071068 --> imag(cos(x0+%i*h))/h  ans  =  

Re: [Scilab-users] display of complex/not real numbers, again

2019-09-12 Thread Antoine ELIAS
Hello Stéphane, In Scilab 6.0.2 without format("e", 24) --> h = %eps/128, x0=%pi/4  h  =    1.735D-18  x0  =    0.7853982 --> (cos(x0+h)-cos(x0-h))/2/h  ans  =    0. --> cos(x0+%i*h)  ans  =    0.7071068 --> imag(cos(x0+%i*h))/h  ans  =   -0.7071068 --> -sin(x0)  ans  =   -0.7071068 It

[Scilab-users] display of complex/not real numbers, again

2019-09-12 Thread Stéphane Mottelet
Hello all, The subject has been already discussed a lot but I would like it to be discussed again because I now have a real rationale to promote a change in the way complex numbers with small imaginary part are displayed. I don't know if some of you were aware of the clever technique of