Re: [sympy] Difference between replace and subs?

2012-12-05 Thread Shriramana Sharma
Hi and thanks both for your replies. xreplace doesn't look like something I'd be interested in using, but as a very superficial approximation, it looks like replace changes the expression lexicographically but subs changes the expression mathematically. I know I know that's *very* superficial but I

Re: [sympy] default exclusions

2012-12-05 Thread Chris Smith
On Wed, Dec 5, 2012 at 11:50 AM, Aaron Meurer wrote: > Well, it also doesn't mean that you necessarily want to match a > "coefficient", though that's usually what it's used for. For example, > something like > > (cos(x)*x).match(a*x) -> {a: cos(x)} > > It's just an optional setting so there is n

[sympy] trigsimp -> cos(x+y)

2012-12-05 Thread Carsten Knoll
Hi there, today I stumbled on a trigsimp problem: In [4]: trigsimp(cos(x+y).expand(trig=True)) Out[4]: -sin(x)*sin(y) + cos(x)*cos(y) In [5]: simplify(cos(x+y).expand(trig=True)) Out[5]: -sin(x)*sin(y) + cos(x)*cos(y) In other words: the identity -sin(x)*sin(y) + cos(x)*cos(y) == cos(x+y) i

[sympy] How to get interactive MathJax display like SymPy

2012-12-05 Thread Shriramana Sharma
I observe that SymPy Live is able to output properly typeset math expressions (like we have on math.stackexchange.com) presumably using MathJax. I would most appreciate whether it is possible for me to get such a display on my computer. Both the regular and pprint display are not so convenient for

Re: [sympy] How to get interactive MathJax display like SymPy

2012-12-05 Thread Ronan Lamy
Le 05/12/2012 23:49, Shriramana Sharma a écrit : I observe that SymPy Live is able to output properly typeset math expressions (like we have on math.stackexchange.com) presumably using MathJax. I would most appreciate whether it is possible for me to get such a display on my computer. Both the re

Re: [sympy] How to get interactive MathJax display like SymPy

2012-12-05 Thread Shriramana Sharma
On Thu, Dec 6, 2012 at 6:04 AM, Ronan Lamy wrote: > Precise has IPython 0.12, so I think that you only need to run '%load_ext > sympyprinting' in your notebook. (For IPython 0.13, '%load_ext > sympy.interactive.ipythonprinting' is recommended instea Thank you very much! I have backported the late

Re: [sympy] How to get interactive MathJax display like SymPy

2012-12-05 Thread Aaron Meurer
Even with the older IPython, using the SymPy version is preferred (assuming you are running the newest version of SymPy, which you should be). We technically haven't tested it on the older versions, but it should work just the same. Aaron Meurer On Wed, Dec 5, 2012 at 6:36 PM, Shriramana Sharma