[sympy] Re: Series expansion of f(x,y)

2014-06-20 Thread Richard Fateman
I haven't tried your example, so I am guessing what you are doing. BUT... You could read about how other computer algebra systems deal with this problem. For example Maxima has two methods for multiple-variable series, recursive-by-variable or total-degree truncation. I think it is ok to

[sympy] Converting dict containing SymPy objects to JSON

2014-06-20 Thread TARUN GABA
Hi I have a dict containing symbols as keys, mapped to float values. I need to convert it to JSON format(for passing to Javascript). Here is an example dict: constants = {l: 10.0, m: 10.0, g: 9.81} python's json module cannot parse these symbols.What should be the best approach to implement

Re: [sympy] Converting dict containing SymPy objects to JSON

2014-06-20 Thread Aaron Meurer
You should probably just store the name of the symbol in the dictionary as a string. You may also want to do that for the floats if precision issues come up. Aaron Meurer On Fri, Jun 20, 2014 at 1:20 PM, TARUN GABA tarun.ga...@gmail.com wrote: Hi I have a dict containing symbols as keys,

Re: [sympy] solve(...) and roots(...)

2014-06-20 Thread Vinzent Steinberg
On Tuesday, June 17, 2014 4:01:05 AM UTC-4, Camille Chambon wrote: Hello Christophe, Thanks for your answer. OK. So if my equation is not solvable symbolically, I can't use SymPy? Then I will use a numeric solver, like SciPy. Have a look at `nsolve`, it solves equations numerically given

[sympy] Finding domains of numbers

2014-06-20 Thread Saurabh Jha
Hey all, I am looking for a function that can give me the domain of a number taking number as argument. For example, find_domain(2) ZZ find_domain(2/3) QQ I wonder if this thing is already implemented in Polys module or elsewhere. If not, I think this should not be very difficult to