Updates:
        Labels: NeedsReview smichr

Comment #7 on issue 3068 by smi...@gmail.com: incorrect sign calculated
http://code.google.com/p/sympy/issues/detail?id=3068

In https://github.com/sympy/sympy/pull/1153 , sign(n - i) is now unevaluated. Perhaps the sign can be determined by evaluating this...I'll check:

    >>> n=pi**1000
    >>> i=int(n)
    >>> sign(n-i)
sign(-14121235445157648123104397328815876354759634615820625740483463241129528844 74452775306450654297508705097932887843986156765682639878790173172011514327663828 52945411305269317749985012739462716111596721506105128205513023970079702904404288 68834035366715627960831224418497658597558053786268442220701962040550428767112425 51520296866903300565030193813895002519835302685083200044863383976554312520576824 91778564893224035632529909176296721558266993909464943451508352139725969309079693
    415756497339648181883882 + pi**1000)
    >>> _.n()
    1.00000000000000


--
You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to sympy-patches@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en.

Reply via email to