MTM
compose
compose functions
Calling Sequence
Parameters
Description
Examples
compose(f,g)
compose(f,g,z)
compose(f,g,x,z)
compose(f,g,x,y,z)
f
-
expression
g
z
symbol
x
y
The function compose(f,g) interprets the expressions f and g as functions of s and t, respectively, and returns an expression that represents the function f(g(t)). Here, s and t are the default symbols of f (given by findsym(f,1)) and g (given by findsym(g,1)), respectively.
The function compose(f,g,z) treats f and g as functions of s and t, as described above, and returns an expression that represents the function f(g(z)).
The function compose(f,g,x,z) treats f as a function of x, g as a function of the default symbol, and returns an expression that represents the function f(g(z)).
The function compose(f,g,x,y,z) treats f as a function of x, g as a function of y, and returns an expression that represents the function f(g(z)).
with⁡MTM:
f≔n−n2−p
f≔−n2+n−p
g≔cos⁡m−q−12
g≔cos⁡m−1q
For f(p) and g(q), compute f(g(q));
compose⁡f,g
−n2+n−cos⁡m+1q
For f(p) and g(q), compute f(g(r));
compose⁡f,g,r
−n2+n−cos⁡m+1r
For f(n) and g(q), compute f(g(r));
compose⁡f,g,n,r
−cos⁡m−1r2+cos⁡m−1r−p
For f(n) and g(m), compute f(g(r));
compose⁡f,g,n,m,r
−cos⁡r−1q2+cos⁡r−1q−p
See Also
@
MTM[findsym]
MTM[fix]
Download Help Document