Maxima Function
setup_autoload (filename, function_1, ..., function_n)
Specifies that
if any of function_1, ..., function_n are referenced and not yet defined,
filename is loaded via load
.
filename usually contains definitions for the functions specified,
although that is not enforced.
setup_autoload
does not work for array functions.
setup_autoload
quotes its arguments.
Example:
(%i1) legendre_p (1, %pi); (%o1) legendre_p(1, %pi) (%i2) setup_autoload ("specfun.mac", legendre_p, ultraspherical); (%o2) done (%i3) ultraspherical (2, 1/2, %pi); Warning - you are redefining the Macsyma function Warning - you are redefining the Macsyma function 2 3 (%pi - 1) (%o3) ------------ + 3 (%pi - 1) + 1 2 (%i4) legendre_p (1, %pi); (%o4) %pi (%i5) legendre_q (1, %pi); %pi + 1 %pi log(-------) 1 - %pi (%o5) ---------------- - 1 2