Function: math[addtbl], math[deltbl] - add or delete entries from a table

Calling Sequence:

addtbl(t, l);
deltbl(t, l);

Parameters:

t - name of the table concerned
l - a list of table entries or indices to be removed

Description:

This function adds or removes entries to/from a table.

To add entries to a table pass a list of equations as the second parameter, to addtbl,
e.g. [
[Maple Math] = [Maple Math] , ...], where [Maple Math] is a valid indice and [Maple Math] a valid Maple expression. You may put indices of multi-dimensional tables in brackets.

To remove an entry from a table, pass a list of indices to deltbl. Indices of 'multidimensional' entries must be put in square brackets.

This function is part of the math package, and so can be used only after performing the command with(math) or with(math, addtbl), with(math, deltbl), or with(math, addtbl, deltbl).

Examples:

> Jupiter := table([Planet=71398]);

[Maple Math]
[Maple Math]
[Maple Math]

> addtbl(Jupiter, [Io=1815, Europa=1569, Ganymede=2631, Callisto=2400]);

> eval(Jupiter);

[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]

> addtbl(Jupiter, [(Io, d) = 421600, (Europa, d)=670900]);eval(Jupiter);

[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]

> deltbl(Jupiter, [[Io, d], [Europa, d], Io, Planet]);

> eval(Jupiter);

[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]
[Maple Math]

See Also:

table .

Version History:

Version 1.00 - June 19, 1997