compose - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


MTM

  

compose

  

compose functions

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

compose(f,g)

compose(f,g,z)

compose(f,g,x,z)

compose(f,g,x,y,z)

Parameters

f

-

expression

g

-

expression

z

-

symbol

x

-

symbol

y

-

symbol

Description

• 

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)).

Examples

withMTM:

fnn2p

fn2+np

(1)

gcosmq12

gcosm1q

(2)

For f(p) and g(q), compute f(g(q));

composef,g

n2+ncosm+1q

(3)

For f(p) and g(q), compute f(g(r));

composef,g,r

n2+ncosm+1r

(4)

For f(n) and g(q), compute f(g(r));

composef,g,n,r

cosm1r2+cosm1rp

(5)

For f(n) and g(m), compute f(g(r));

composef,g,n,m,r

cosr1q2+cosr1qp

(6)

See Also

@

MTM[findsym]

MTM[fix]