Maxima Manual. Node: FUNCTION

PREV Introduction to Function Definition UP Function Definition NEXT MACROS

7.2: 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.

PREV Introduction to Function Definition UP Function Definition NEXT MACROS