in operator Xcas

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 561
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

in operator Xcas

Message par compsystems » jeu. mai 09, 2019 1:20 am

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

Répondre