MTM - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : MTM Package : MTM/compose

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

f:=n2+np

(1)

gcosmq12

g:=cosm1q

(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]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam