If I define:

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

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?

1 | initial version |

If I define:

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

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?

2 | No.2 Revision |

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) = (2*x,y+x+z,y*x)

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?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.