| Author |
Comment/Response |
Henry Lamb
|
09/22/04 7:28pm
You can use Sequence to splice an iterator sequence into a function, such as Table, Sum, or Product. For example, suppose your iterators are
iter={{i,1,3},{j,1,3},{k,1,3}}
then you can assemble a table with
Table[a,Evaluate[Sequence@@iter]]
or a product with
Product[a,Evaluate[Sequence@@iter]].
However, if you want to compute a Sum, it's better to use Total, which doesn't require iterators.
URL: , |
|