#17891: rational powers of real interval field element (containing 0) give NaN
----------------------+----------------------------
Reporter: dkrenn | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.6
Component: misc | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
----------------------+----------------------------
We have
{{{
sage: RIF(-1,1)^QQ(1)
[.. NaN ..]
sage: RIF(-1,1)^RIF(1)
[.. NaN ..]
}}}
whereas
{{{
sage: RIF(-1,1)^ZZ(1)
0.?
}}}
More generally, we it works for integers
{{{
sage: RIF(-1,1)^ZZ(123456)
0.?
}}}
as well as for the rational or RIF-element 2
{{{
sage: RIF(-1,1)^QQ(2)
1.?
sage: RIF(-1,1)^RIF(2)
1.?
}}}
but not for any other rational or RIF-element, e.g.
{{{
sage: RIF(-1,1)^QQ(3)
[.. NaN ..]
sage: RIF(-1,1)^QQ(4)
[.. NaN ..]
}}}
The reason seems to be
{{{
sage: log(RIF(-1,1))
[.. NaN ..]
}}}
The NaN-answer can be considered as wrong, since the true result is a
number and can be calculated; it's a limitation of the algorithm.
--
Ticket URL: <http://trac.sagemath.org/ticket/17891>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.