<< remove Sets the_union >>

Scilab Scholar module for schools >> Sets > subset_of

subset_of

determines if one set is a subset of another

Calling sequence

b = subset_of(set1,set2)

Arguments

set1

set

set2

set

b

%T (true) or %F (false)

Description

The function subset_of returns true (%T) if the set set1 is a subset of the set set2 and false (%F) if it is not.

Examples

set1=define_set("a","c")
set2=define_set("a","b","c")
subset_of(set1,set2)
subset_of(set2,set1)

See Also

<< remove Sets the_union >>