Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13; sqrt(2).n(2) - sqrt(2).n(2) != 0

2011-11-15 Thread sympy
Updates: Summary: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13; sqrt(2).n(2) - sqrt(2).n(2) != 0 Status: Started Labels: -PassedReview NeedsReview smichr Comment #13 on issue 2107 by smi...@gmail.com: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13; sqrt(2).n(2) - sqr

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2011-10-11 Thread sympy
Comment #12 on issue 2107 by smi...@gmail.com: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 http://code.google.com/p/sympy/issues/detail?id=2107#c3 may be helpful in getting s=sqrt(3) s.n(2) - s.n(2) to give 0 -- You rece

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2011-10-11 Thread sympy
Updates: Status: Fixed Labels: -NeedsReview PassedReview Comment #11 on issue 2107 by matt...@gmail.com: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 This was merged. -- You received this message because you are subscr

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2011-10-11 Thread sympy
Comment #10 on issue 2107 by smi...@gmail.com: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 see also issue 1857 -- You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group,

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2011-10-11 Thread sympy
Updates: Labels: NeedsReview Comment #9 on issue 2107 by matt...@gmail.com: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 Pull request is here: https://github.com/sympy/sympy/pull/648 -- You received this message because you ar

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2011-10-11 Thread sympy
Updates: Status: Started Comment #8 on issue 2107 by matt...@gmail.com: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 Going further: In [1]: a = Float(0.1, 10) (0, mpz(3602879701896397), -55, 52) # a._mpf_ In [2]: b = Float("0

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2011-10-11 Thread sympy
Comment #7 on issue 2107 by matt...@gmail.com: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 This issue is really peculiar. Currently in master I get: In [1]: a = Float(0.1, 10) In [2]: b = Float("0.1", 10) # <- note the quotes In [3

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2010-12-01 Thread sympy
Comment #6 on issue 2107 by smichr: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 FWIW, if you cause self and -other to be normalized to the same value (0) before adding, they add ok: def __sub__(self, other): return Ad

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2010-11-30 Thread sympy
Comment #5 on issue 2107 by smichr: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 cf issue 2105 -- You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to sy

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2010-11-30 Thread sympy
Comment #4 on issue 2107 by asmeurer: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 Actually, we also need to figure out what makes it go wrong in Add and fix it there too, so that explicitly calling Add(Real(0.1, 10), -Real(0.1, 10))

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2010-11-30 Thread sympy
Updates: Cc: fredrik.johansson Comment #3 on issue 2107 by asmeurer: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 The only thing that I can see that is being called differently there is that Real has __add__ defined but not _

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2010-11-30 Thread sympy
Comment #2 on issue 2107 by fredrik.johansson: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 There is definitely something fishy going on here. Note a = Real(0.1,1) a - a -4.e-4 a + (-a) 0 THIS LINE WAS ADDED TO THIS COMMENT BECAU

Re: Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2010-11-30 Thread sympy
Updates: Status: Accepted Comment #1 on issue 2107 by asmeurer: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 I get the same thing in master. I don't know if this is something that can be fixed, or if it is just one of those

Issue 2107 in sympy: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13

2010-11-29 Thread sympy
Status: New Owner: Labels: Type-Defect Priority-Medium New issue 2107 by ruoyu0088: Real(0.1, 10) - Real(0.1, 10) -> 3.637923296e-13 http://code.google.com/p/sympy/issues/detail?id=2107 Version: 0.6.7 Real(0.1, N) - Real(0.1, N) return no zero when N<=14: In [77]: Real(0.1, 1) - Real(