Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Create multivariate function of a list of variables

I have created a list of variables, myvars

I'd like to create a function of those variables, but

myvars = var('x y z')

f = function('f')(myvars)

doesn't work.

Of course in my actual code I'm creating myvars programatically, so doing

f = unction('f')(myvars[0], myvars[1], myvars[2])

is not convenient

Create multivariate function of a list of variables

I have created a list of variables, myvars

I'd like to create a function of those variables, but

myvars = var('x y z')

z')

f = function('f')(myvars)

function('f')(myvars)

doesn't work.

Of course in my actual code I'm creating myvars programatically, so doing

  

f = unction('f')(myvars[0], myvars[1], myvars[2])

myvars[2])

is not convenient convenient

Create multivariate function of a list of variables

I have created a list of variables, myvars

I'd like to create a function of those variables, but

myvars = var('x y z')
 f = function('f')(myvars)

doesn't work.

Of course in my actual code I'm creating myvars myvars programatically, so doing

 f = unction('f')(myvars[0], myvars[1], myvars[2])

is not convenient