<< define_set Sets intersection >>

Scilab Scholar module for schools >> Sets > element_of

element_of

determines whether an element belongs to a set

Calling sequence

b = element_of(e,set1)

Arguments

set1

set

e

character string

b

%T (true) or %F (false)

Description

The function element_of returns true (%T) if the element e is an element of the set set1 and false (%F) if it is not.

Examples

set1=define_set("a","b","c")
element_of("a",set1)
element_of("toto",set1)

See Also

<< define_set Sets intersection >>