Up | Next | Prev | PrevTail | Tail |
Author: Eberhard Schrüfer
This package implements vector operations on lists.. Addition, multiplication, division, and exponentiation work elementwise. For example, after
c*A will simplify to {c*a1,..,c*a4}, A + B to {a1+b1,...,a4+b4}, and A*B to {a1*b1,...,a4*b4}. Linear operations work as expected:
A division and an exponentation example:
The new operator *. (ldot) implements the dot product:
For accessing list elements, the new operator _ (lnth) can be used instead of the PART operator:
It can also be used to modify a list (unlike PART, which returns a modified list):
Operators are distributed over lists:
By using the keyword listproc, an algebraic procedure can be declared to return a list:
Up | Next | Prev | PrevTail | Front |