Online Algebra Calculator
Many of users do not use powerful Maxima computer algebra system for systematic work, but for ad hoc algebraic calculations – equations, functions, matrixes, etc. only. To do this job, it is not useful to download the whole application from a web site.
Function: dispfun (<f_1>, ..., <f_n>)
Function: dispfun (all) Displays the definition of the user-defined functions <f_1>, ..., <f_n>. Each argument may be the name of a macro (defined with ::=), an ordinary function (defined with := or define), an array function (defined with := or define, but enclosing arguments in square brackets [ ]), a subscripted function, (defined with := or define, but enclosing some arguments in square brackets and others in parentheses ( )) one of a family of subscripted functions selected by a particular subscript value, or a subscripted function defined with a constant subscript.
dispfun (all) displays all user-defined functions as given by the functions, arrays, and macros lists, omitting subscripted functions defined with constant subscripts.
dispfun creates an intermediate expression label (%t1, %t2, etc.) for each displayed function, and assigns the function definition to the label. In contrast, fundef returns the function definition.
dispfun quotes its arguments; the quote-quote operator defeats quotation. dispfun returns the list of intermediate expression labels corresponding to the displayed functions.
Examples:
(%i1) m(x, y) ::= x^(-y);
- y
(%o1) m(x, y) ::= x
(%i2) f(x, y) := x^(-y);
- y
(%o2) f(x, y) := x
(%i3) g[x, y] := x^(-y);
- y
(%o3) g := x
x, y
(%i4) h[x](y) := x^(-y);
- y
(%o4) h (y) := x
x
(%i5) i[8](y) := 8^(-y);
- y
(%o5) i (y) := 8
8
(%i6) dispfun (m, f, g, h, h[5], h[10], i[8]);
- y
(%t6) m(x, y) ::= x - y
(%t7) f(x, y) := x - y
(%t8) g := x
x, y - y
(%t9) h (y) := x
x 1
(%t10) h (y) := --
5 y
5 1
(%t11) h (y) := ---
10 y
10 - y
(%t12) i (y) := 8
8 (%o12) [%t6, %t7, %t8, %t9, %t10, %t11, %t12]
(%i12) %;
- y - y - y
(%o12) [m(x, y) ::= x , f(x, y) := x , g := x ,
x, y
- y 1 1 - y
h (y) := x , h (y) := --, h (y) := ---, i (y) := 8 ]
x 5 y 10 y 8
5 10(%o1) true (%i2)