1
$\begingroup$

What's the best way to extend Variables to work on expressions that are not polynomial?

IE, the following returns {x,y}, but I want {x,y,z}

expr=2 x + 5 y + 10^z;
Variables[expr]

This would be useful for automatically turning expressions into callable functions like here, ie automatically fill variable slots from parameters:

makeFunc[expr][1,2,3]
$\endgroup$
2

0

Browse other questions tagged or ask your own question.