Plotting, Summing and simple functions in Maple
Data points are often stored as a "
is a structure of ordered elements deliminated by
For example, [a,b,c,d] is a list of 4 elements a, b, c, d, ordered from the first "a" to
the last "d".
[1,2] is an ordered pair, a list with two elements, of which the first can be
considered an X-coordinate, and the second a Y-coordinate.
The elements of a list may themselves be lists.
is a list of ordered pairs, each ordered pair is a list itself.
The elements of a list L can be accessed by specifying a coordinate.
example, L is the third element of L.
L := [[1,2],[3,4],[5,6],[7,8]];
A list of ordered pairs can be plotted using "plot":
A list can be efficiently generated by using "seq" (for sequence).
List := [seq([i,i-1],i=1.
Observe the outside square brackets (to make a list), and the dummy variable "i".
plot(List, style = point);
One can list the elements of a list with "seq":