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

Rafael Guerra jrafaelbguerra at hotmail.com
Fri Jun 29 01:25:48 CEST 2018


Samuel,

Regarding signed zero applications, check this page out:
https://www.advanpix.com/2016/04/28/branch-cuts-and-signed-zeros-in-matlab/

Regards,
Rafael

-----Original Message-----
From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Samuel Gougeon
Sent: Friday, June 29, 2018 1:13 AM
To: International users mailing list for Scilab. <users at lists.scilab.org>
Subject: [Scilab-users] What can be done with a signed zero -0 ?

Dear co-users,

I am somewhat rediscovering that Scilab allows to defined a signed zero:

--> zm = -0
  zm  =
    0.

--> 1/zm
  ans  =
   -Inf

It looks not documented. I am wondering where is the best place to document it (i mean, which existing page?), and even if it is worthwhile to document it.

Indeed, what can be done with it? Beside inverting it into -%inf, other operations are rather disappointing:

--> zm==0
  ans  =
   T

--> zm<0
  ans  =
   F

--> sign(zm)
  ans  =
    0.

Any idea about applications?

Cheers
Samuel

_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



More information about the users mailing list