Previous Page Contents

solvelib::Union -- union of a system of sets

Introduction

solvelib::Union(set, param, paramset) returns the set of all objects that can be obtained by replacing, in some element of set, the free parameter param by an element of paramset.

Call(s)

solvelib::Union(set, param, paramset)

Parameters

set - set of any type
param - identifier
paramset - set of any type

Returns

solvelib::Union returns a set of any type; see solve for an overview of the different types of sets. It may also return the unevaluated call if the union could not be computed.

Overloadable:

set

Related Functions

solve

Details

Example 1

We compute the set of all numbers that are equal to k+1 or k+3 for k=2, k=4, or k=l, where l is a free parameter.

>> solvelib::Union({k+1, k+3}, k, {2,4,l});
                          {3, 5, 7, l + 1, l + 3}

Changes




Do you have questions or comments?


Copyright © SciFace Software GmbH & Co. KG 2000