Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

python equivalent of T(x,y)=(x*y,x+y) ?

In sage command line, I can write T(x,y) = (x*y,x+y) and can apply T.diff() to compute Jacobian.

But when I write the same in python, it says you can not assign to a function.

Does anyone know what I should write in python for T(x,y)=(x*y,x+y)?

click to hide/show revision 2
retagged

updated 2011-02-08 16:22:24 -0500

kcrisman gravatar image

python equivalent of T(x,y)=(x*y,x+y) ?

In sage command line, I can write T(x,y) = (x*y,x+y) and can apply T.diff() to compute Jacobian.

But when I write the same in python, it says you can not assign to a function.

Does anyone know what I should write in python for T(x,y)=(x*y,x+y)?

click to hide/show revision 3
retagged

python equivalent of T(x,y)=(x*y,x+y) ?

In sage command line, I can write T(x,y) = (x*y,x+y) and can apply T.diff() to compute Jacobian.

But when I write the same in python, it says you can not assign to a function.

Does anyone know what I should write in python for T(x,y)=(x*y,x+y)?