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. [
=
, ...], where
is a valid indice and
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]);
> addtbl(Jupiter, [Io=1815, Europa=1569, Ganymede=2631, Callisto=2400]);
> eval(Jupiter);
> addtbl(Jupiter, [(Io, d) = 421600, (Europa, d)=670900]);eval(Jupiter);
> deltbl(Jupiter, [[Io, d], [Europa, d], Io, Planet]);
> eval(Jupiter);
See Also:
table .
Version History:
Version 1.00 - June 19, 1997