#5782 closed defect (fixed)
[with patch, positive review] Failure of __pow__ in RDF for noninteger powers of zero
Reported by: | kbaker | Owned by: | somebody |
---|---|---|---|
Priority: | minor | Milestone: | sage-3.4.1 |
Component: | basic arithmetic | Keywords: | RDF, __pow__, zero |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | Work issues: | ||
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
Positive noninteger powers of RDF(0) give nan rather than zero:
sage: RDF(0)^.5 nan sage: RDF(0)^(1/2) nan
In contrast, noninteger powers of CDF(0) have the correct value:
sage: CDF(0)^.5 0 sage: CDF(0)^(1/2) 0
Attachments (1)
Change History (8)
comment:1 Changed 12 years ago by
- Summary changed from Failure of __pow__ in RDF for noninteger powers of zero to [with patch, needs review] Failure of __pow__ in RDF for noninteger powers of zero
comment:2 Changed 12 years ago by
Changed 12 years ago by
comment:3 Changed 12 years ago by
Doh! Patch updated.
comment:4 Changed 12 years ago by
- Summary changed from [with patch, needs review] Failure of __pow__ in RDF for noninteger powers of zero to [with patch, positive review] Failure of __pow__ in RDF for noninteger powers of zero
Second patch looks good to me. Positive review. It also passes doctests :)
Cheers,
Michael
comment:5 Changed 12 years ago by
- Resolution set to fixed
- Status changed from new to closed
Merged in Sage 3.4.1.rc3.
Cheers,
Michael
comment:6 follow-up: ↓ 7 Changed 12 years ago by
Does this fix #5785?
comment:7 in reply to: ↑ 6 Changed 12 years ago by
Note: See
TracTickets for help on using
tickets.
Hmm, we have some trivial doctest failures:
I think other than that this is good to go.
Cheers,
Michael