Page 1 sur 1

in operator Xcas

Publié : jeu. mai 09, 2019 1:20 am
par compsystems
HelloBP
The sentence (1 in A) is returning 1, it must return true to give uniformity with the rest of the function outputs

Code : Tout sélectionner

A := set(1, 2, 3);
print(1 in A, 4 not in A);
A.extend(4);
print(4 not in A)
[enter] returns
1,true
false