<< add_to_set Sets deck_32 >>

Scilab Scholar module for schools >> Sets > complement

complement

returns the complement of a set in another

Calling sequence

set3 = complement(set1,set2)

Arguments

set1

set

set2

set

set3

set

Description

The function complement returns the set set3 which are the elements of set2 which are not in the set set1. The set set1 must be a subset of set2.

Examples

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

See Also

<< add_to_set Sets deck_32 >>