member

(function for equations)

 

Usage:

member (elem, s1, s2, ... sn)

Definition:

(elem == s1) || (elem == s2) || ... || (elem == sn)

Required:

elem and all si must be the same type

Returns true iff one of the si arguments has the same value as elem..

See also nearest.

 

Examples:

member (1, -6, 3, 1, 3)  returns true

 

member (C, blue, red) and C = red    returns true