<< element_of Sets random_subset >>

Scilab Scholar module for schools >> Sets > intersection

intersection

returns the intersection of two sets

Calling sequence

set3 = intersection(set1,set2)

Arguments

set1

set

set2

set

set3

set

Description

The function intersection returns the set set3 obtained by forming the intersection of the sets set1 and set2. If the sets are disjoint, the empty set {} is returned.

Examples

set1=define_set("a","c")
set2=define_set("b","c","d")
intersection(set1,set2)
set2=define_set("toto")
intersection(set1,set2)

See Also

<< element_of Sets random_subset >>