Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 14 years ago

Shu 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 2
retagged

updated 14 years ago

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

updated 10 years ago

FrédéricC 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)?