[sympy] Re: a bug in Line3D intersection?

2014-12-05 Thread zhihua ouyang
I just fixed the bug which is in sympy\geometry\line3d.py: def intersection(self, o): ... elif isinstance(o, LinearEntity3D): a = self.direction_cosine b = o.direction_cosine a = [abs(i) for i in a] b = [abs(i) for i in b]

Re: [sympy] Printing Latex in ipython notebook and qtconsole

2014-12-05 Thread Aaron Meurer
The qtconsole uses matplotlib to generate latex, which supports a more limited set of latex (in particular, I don't think it supported \begin). Aaron Meurer On Wed, Dec 3, 2014 at 4:35 PM, Alan Bromborsky wrote: > I have custom latex printing working for galgebra in "ipython notebook", but > it

Re: [sympy] Sympy assumptions

2014-12-05 Thread Francesco Bonazzi
newvars =symbols('x a b', integer=True) e.xreplace(dict(zip([x,a,b], newvars))) I did not test this. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@

Re: [sympy] Sympy assumptions

2014-12-05 Thread Aaron Meurer
They need to be positive. Even for integer x, sqrt(x**2) != x if x is negative. Aaron Meurer On Fri, Dec 5, 2014 at 3:34 PM, Francesco Bonazzi wrote: > newvars =symbols('x a b', integer=True) > e.xreplace(dict(zip([x,a,b], newvars))) > > I did not test this. > > -- > You received this message be

Re: [sympy] Sympy assumptions

2014-12-05 Thread Richard Fateman
You are heading into erroneous waters. It doesn't matter that 3>0. sqrt(9) has two values, +3 and -3. Just because some other systems make this mistake does not mean sympy should do this. If you want to say something about the choice of branch for sqrt(x^2), you have to say something about sqrt(

Re: [sympy] Sympy assumptions

2014-12-05 Thread Francesco Bonazzi
Sorry I mistyped. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit