Re: [sympy] sympy.stats how to lambdify with array arguments

2013-08-30 Thread Matthew Rocklin
The first input to lambdify should be either a SymPy expression or a list of SymPy expressions. I don't know enough about lambdify to know if we support list of lists of sympy expressions. In general you won't be able to use lambdify with arbitrary n because the target expression (the second argu

Re: [sympy] sympy.stats how to lambdify with array arguments

2013-08-30 Thread Janwillem van Dijk
T hanks Matthew, Is the following snippet of use? Yes and No. The lines 5 and 6 are a useful tip; I missed the prod method, that is nice. And yes for two N-distributions explicit solutions are to be found in the litt and SymPy can find t

[sympy] Re: Diophantine Equation Module

2013-08-30 Thread Thilina Rathnayake
Hi Aaron, Thanks for the reply, I'll return all the four solutions then. Hope we can come up with a neat fix to the bug. Regards, Thilina On Fri, Aug 30, 2013 at 7:59 AM, Aaron Meurer wrote: > I looked into the bug, and I can see what the issue is and how it > should be fixed, but I'm not

Re: [sympy] SymPy standard functions on special objects

2013-08-30 Thread Aaron Meurer
Yes, quite a few functions allow this. The two you mention require you to implement _eval_simplify and _eval_trace methods, respectively. Aaron Meurer On Fri, Aug 30, 2013 at 2:33 AM, F. B. wrote: > I am wondering whether it is possible to use standard SymPy functions like > simplify( ) and trac

[sympy] SymPy standard functions on special objects

2013-08-30 Thread F. B.
I am wondering whether it is possible to use standard SymPy functions like simplify( ) and trace( ) on special objects, i.e. if an object can overload the behavior of these functions when they are applied upon it. For instance, gamma matrices in physics are special objects which may be in some