Re: [sympy] RFC: Context manager for new assumptions

2013-02-04 Thread Anton Loukianov
umptions to them? That way, proxies will inherit assumptions but new symbols shadowing the "assumed about" ones will not. Perhaps a pseudorandom hash will do? - Anton Loukianov -- You received this message because you are subscribed to the Google Groups "sympy" group. To

[sympy] Regression on MathJax rendering in ipython notebook?

2013-04-24 Thread Anton Loukianov
Hi, I know that there has been some work on latex printing. Has there been a recent regression on latex rendering in ipython notebook? I seem to only be able to get png rendering. I am running the git versions of ipython and sympy. A minimal example is %load_ext sympy.interactive.ipythonprin

Re: [sympy] Regression on MathJax rendering in ipython notebook?

2013-04-24 Thread Anton Loukianov
I've isolated the issue to commit f64974c, and opened an issue https://github.com/sympy/sympy/issues/2039 . - Anton On Wednesday, April 24, 2013 2:41:14 PM UTC-4, Aaron Meurer wrote: > > If there isn't an issue open about it, please open one. I think there > is some issue with the git version o

Re: [sympy] Regression on MathJax rendering in ipython notebook?

2013-04-24 Thread Anton Loukianov
Never mind, that commit is old news. Since then MathJax rendering seems to have been disabled on purpose in interactive/printing.py . Enabling it works. - Anton On Wednesday, April 24, 2013 4:17:53 PM UTC-4, Anton Loukianov wrote: > > I've isolated the issue to commit f64974c, an

Re: [sympy] Regression on MathJax rendering in ipython notebook?

2013-04-24 Thread Anton Loukianov
Yeah, my bad. It looks like https://code.google.com/p/sympy/issues/detail?id=3537 is the relevant issue. The problem seems to be the incorrect handling of built-in python types. Printing ints and such defaults to image representation, whereas sympy types work properly. This is still a problem a

[sympy] Expanding products of sqrts

2013-06-21 Thread Anton Loukianov
Hello, How do I expand products of square roots like this? import sympy as sp A1,A1 = sp.symbols('A1,A2', real=True, constant=True) coef1 = sp.sqrt(1/(A1**2 + A2**2 + sp.sqrt(A1**4 - A1**2*A2**2 + A2**4))) coef2 = sp.sqrt(1/(A1**2 + A2**2 - sp.sqrt(A1**4 - A1**2*A2**2 + A2**4))) sp.expand(coef1*