Maxima Manual. Node: Introduction to Lists

PREV Lists UP Lists NEXT Definitions for Lists

1.1: Introduction to Lists

Lists are the basic building block for maxima and lisp. All data types other than arrays, hash tables, numbers are represented as lisp lists, These lisp lists have the form

((mplus) $A 2)

to indicate an expression A+2. At maxima level one would see the infix notation A+2. Maxima also has lists which are printed as

[1, 2, 7, x+y]

for a list with 4 elements. Internally this corresponds to a lisp list of the form

((mlist) 1  2  7  ((mplus)  $X $Y ))

The flag which denotes the type field of the maxima expression is a list itself, since after it has been through the simplifier the list would become

((mlist simp) 1 2 7 ((mplus simp) $X $Y))
PREV Lists UP Lists NEXT Definitions for Lists