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