Re: [sympy] Functional dependence

2015-06-06 Thread Aaron Meurer
Use g.free_symbols to get all the variables that g depends on. Aaron Meurer On Sat, Jun 6, 2015 at 5:43 PM, brombo wrote: > If I have a sympy expression, g, that is a function of sympy symbols (say x, > y, z, and t) how can I determine that g is not dependent on any other > symbols. The context

[sympy] Functional dependence

2015-06-06 Thread brombo
If I have a sympy expression, g, that is a function of sympy symbols (say x, y, z, and t) how can I determine that g is not dependent on any other symbols. The context for this is that I wish to determine if I have a metric tensor that tensor is a function only of x, y, z, and t and not a fuct