Re: [sympy] Sympy exponential equation

2015-06-06 Thread Paul Royik
Thank you. On Friday, June 5, 2015 at 11:52:11 PM UTC+3, Aaron Meurer wrote: Ah, it looks like, as with that issue, you can get solve to give you an answer if you pass check=False: In [21]: print(solve(-(S(21)/20)**(12*x) + 120, x, check=False)) [-log(120**(1/(-log(7355827511386641) +

[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

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 abrombo...@gmail.com 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