[Scilab-Dev] and(%nan) ==%T

Samuel Gougeon sgougeon at free.fr
Tue Apr 12 13:36:18 CEST 2016


Hello,

I am wondering about the following answers:

--> s = %nan;
--> or(s)
  ans  =
   F

--> and(s)
  ans  =
   T

With this last answer, we have a case such that although all entries are 
false -- otherwiseor() would answer %T--, and()applied to them is True.

Is there a reason for that, or is it a bug?

This behavior was already present in Scilab 4.1.2 and is still here in 
Scilab 6.0-b1

Samuel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20160412/5dd39503/attachment.htm>


More information about the dev mailing list