Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Composite function

If I define:

var('x,y,z,t') g(t) = (t, t^2, t^3) f(x,y,z) = (2x,y+x+z,yx)

Is there a way for me to define the composite f(g(t)) without going through:

f(g(t)[0],g(t)[1],g(t)[2])

or something equally ugly?

Composite function

If I define:

var('x,y,z,t') var('x,y,z,t')

g(t) = (t, t^2, t^3) t^3)

f(x,y,z) = (2x,y+x+z,yx)

Is there a way for me to define the composite f(g(t)) without going through:

f(g(t)[0],g(t)[1],g(t)[2])

or something equally ugly?