Re: [sympy] Bug in factor() and simplify()

2016-03-01 Thread Kalevi Suominen
On Tuesday, March 1, 2016 at 5:53:11 PM UTC+2, Oscar wrote: > > On 26 February 2016 at 17:15, Aaron Meurer > wrote: > >> I traced this to here: > >> > >> In [1]: expr = x*sin(y)**2 + x*cos(y)**2 + 0.1*sin(y)**2 + > 0.1*cos(y)**2 > >> > >> In [2]: p = Poly(expr, x,

Re: [sympy] Bug in factor() and simplify()

2016-03-01 Thread Oscar Benjamin
On 26 February 2016 at 17:15, Aaron Meurer wrote: >> I traced this to here: >> >> In [1]: expr = x*sin(y)**2 + x*cos(y)**2 + 0.1*sin(y)**2 + 0.1*cos(y)**2 >> >> In [2]: p = Poly(expr, x, cos(y), sin(y), domain='RR') >> >> In [3]: p >> Out[3]: Poly(1.0*x*cos(y)**2 +

Re: [sympy] Bug in factor() and simplify()

2016-02-26 Thread Aaron Meurer
On Fri, Feb 26, 2016 at 11:28 AM, Oscar Benjamin wrote: > On 25 February 2016 at 15:30, Oscar Benjamin > wrote: >> On 25 February 2016 at 10:44, Yingchi Li wrote: >>> >>> I have found a bug in factor() and simplify()

Re: [sympy] Bug in factor() and simplify()

2016-02-26 Thread Oscar Benjamin
On 25 February 2016 at 15:30, Oscar Benjamin wrote: > On 25 February 2016 at 10:44, Yingchi Li wrote: >> >> I have found a bug in factor() and simplify() >> please look at the image below >> >> the correct answer is q2 + 0.1 > > Looks like a

[sympy] Bug in factor() and simplify()

2016-02-25 Thread Yingchi Li
I have found a bug in factor() and simplify() please look at the image below the correct answer is q2 + 0.1 -- 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