[Scilab-users] What can be done with a signed zero -0 ?

Samuel Gougeon sgougeon at free.fr
Fri Jun 29 01:53:05 CEST 2018


Le 29/06/2018 à 01:39, Samuel Gougeon a écrit :
> Le 29/06/2018 à 01:25, Rafael Guerra a écrit :
>> Samuel,
>>
>> Regarding signed zero applications, check this page out:
>> https://www.advanpix.com/2016/04/28/branch-cuts-and-signed-zeros-in-matlab/ 
>>
>
> Thanks.
> And this one: https://en.wikipedia.org/wiki/Signed_zero
>
> It would be possible to document it in the ieee() or number_properties 
> pages, or the zeros() one,
> or the %inf one, or in a dedicated page, to report Scilab behaviors 
> wrt it for some particular functions...
>
> Reports about Scilab functions that make a difference between -0 and 0 
> are welcome.

We have at least atan():
-->atan(0,0)
  ans  =
     0.

-->atan(0,-0)
  ans  =
     3.1415927
Could be documented as example in the atan() page.




More information about the users mailing list