[sympy] setting latex mul_symbol via init_printing()

2013-08-31 Thread G B
I'm running an IPython session using Sympy, and have started up the pretty print module using init_printing(). The output is getting hard to parse because the default multiplication symbol is "None", and I'd like to set it to something else. Is there a way to do that? It looks like the latex

[sympy] Help understanding lambdify

2013-08-31 Thread Matthew Brett
Hi, I was trying to debug a problem I was having with lambdify, and I got stuck trying to understand the newish 'dummify' changes. So, it's nice that this works now: from sympy import symbols, lambdify, sin from sympy.utilities.lambdify import implemented_function t = symbols('t') x = sin y = x

Re: [sympy] Symbol sorting raises error - intended?

2013-08-31 Thread Matthew Brett
Hi, On Sat, Aug 31, 2013 at 9:35 AM, Aaron Meurer wrote: > Yes, this is absolutely intended. Things like > > if x < y: > ... > > no longer work, unless x - y is explicitly known to be negative or > nonnegative. This fixes a lot of subtle bugs that pop up, because > people will write things li

Re: [sympy] Symbol sorting raises error - intended?

2013-08-31 Thread Aaron Meurer
I added a note about this to the release notes for the next version. https://github.com/sympy/sympy/wiki/release-notes-for-0.7.4#other Aaron Meurer On Sat, Aug 31, 2013 at 10:35 AM, Aaron Meurer wrote: > Yes, this is absolutely intended. Things like > > if x < y: > ... > > no longer work, un

Re: [sympy] Symbol sorting raises error - intended?

2013-08-31 Thread Aaron Meurer
Yes, this is absolutely intended. Things like if x < y: ... no longer work, unless x - y is explicitly known to be negative or nonnegative. This fixes a lot of subtle bugs that pop up, because people will write things like the above expecting x and y to be numbers, but when symbols are passed

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

2013-08-31 Thread Janwillem van Dijk
Hallo again, Yes that was about the point I arrived at and I didn't like the *(mu + s) construct (having a history of algol and pascal). This morning (European time) I decided to do an other search and not stop reading on the second page. than I found out ( http://questiontrack.com/how-to-substi

[sympy] Symbol sorting raises error - intended?

2013-08-31 Thread Matthew Brett
Hi, I just noticed this in current master (not in 0.7.3): In [4]: from sympy import symbols In [5]: syms = symbols('c, b, a') In [6]: sorted(syms) --- TypeError Traceback (most recent call la