Comment #6 on issue 3540 by [email protected]: not Float('inf') is True
http://code.google.com/p/sympy/issues/detail?id=3540

I see the following:


def mpf_norm(mpf, prec):
    """Return the mpf tuple normalized appropriately for the indicated
    precision.

    This also contains a portion of code to not return zero if
    the mantissa is 0 since it is zero for mpf's +inf, -inf and
    nan, too.
    """
    sign, man, expt, bc = mpf
    if not man:
        # hack for mpf_normalize which does not do this;
        # it assumes that if man is zero the result is 0
        if not bc:
            return FZERO
        else:
            # don't change anything; this should already
            # be a well formed mpf tuple
            return mpf

So my guess is that whatever is doing the test is looking at a zero in the mantissa and is making the conclusion from that. Anyone want to sleuth that out?

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

Reply via email to