Go to the first, previous, next, last section, table of contents.


FUNCTION

- To define a function in MACSYMA you use the := operator. E.g.

F(X):=SIN(X)

defines a function F. Anonmyous functions may also be created using LAMBDA. For example

lambda([i,j], ... )

can be used instead of F where

F(I,J):=BLOCK([], ... );
MAP(LAMBDA([I],I+1),L)

would return a list with 1 added to each term.

See also DEFINE.


Go to the first, previous, next, last section, table of contents.