Wrong evaluation of a logical expression. Parenthesis correct this behaviour.
Reported by Benoît Guédas
-- Bug description --
Wrong evaluation of a logical expression. Parenthesis correct this behaviour.
-- Scilab error message --
-- How to reproduce the bug --
This expression is obviously true ("false or true") but is evaluated to false:
-->%F & ~%F | %T & ~%F
ans =
F
but if we change ~%F by %T, we get the right answer:
-->%F & %T | %T & ~%F
ans =
T