adim SciMax Toolbox adjoint

SciMax Toolbox >> adjoin

adjoin

Maxima Function

Calling Sequence

adjoin (x, a)

Description

Returns the union of the set a with {x}.

adjoin complains if a is not a literal set.

adjoin(x, a) and union(set(x), a) are equivalent; however, adjoin may be somewhat faster than union.

See also .

Examples:

(%i1) adjoin (c, {a, b});
(%o1)                       {a, b, c}
(%i2) adjoin (a, {a, b});
(%o2)                        {a, b}
adim SciMax Toolbox adjoint