Correct frexp() docs for zero and non-finite numbers#149753
Conversation
The current version claims, that mantissa in such cases satisfies 0.5 <= abs(m) < 1. That's wrong: ```pycon >>> from math import frexp, inf, nan >>> frexp(inf) (inf, 0) >>> frexp(-inf) (-inf, 0) >>> frexp(nan) (nan, 0) ```
|
CC @StanFromIreland per experts index. |
Documentation build overview
56 files changed ·
|
Hi Sergey, sorry but I'm not a math expert :-( The "documentation" is generally referring to it the infra. |
|
Thanks @skirpichev for the PR, and @serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
Sorry, @skirpichev and @serhiy-storchaka, I could not cleanly backport this to |
|
GH-150652 is a backport of this pull request to the 3.15 branch. |
|
Sorry, @skirpichev and @serhiy-storchaka, I could not cleanly backport this to |
|
GH-150653 is a backport of this pull request to the 3.14 branch. |
|
GH-150654 is a backport of this pull request to the 3.13 branch. |
The current version claims, that mantissa in such cases satisfies 0.5 <= abs(m) < 1. That's wrong: