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
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
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
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,
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
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
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
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
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
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))
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 _
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
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
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(
14 matches
Mail list logo