Introduction to Function Definition
Function Definition
MACROS
- 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.