Skip to content

Commit 83b8c0b

Browse files
committed
Grammatical fix for a comment for log2, to avoid referring to an *algorithm* as monotonic.
1 parent 2cffff9 commit 83b8c0b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/mathmodule.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,8 +581,10 @@ m_log(double x)
581581
log2: log to base 2.
582582
583583
Uses an algorithm that should:
584+
584585
(a) produce exact results for powers of 2, and
585-
(b) be monotonic, assuming that the system log is monotonic.
586+
(b) give a monotonic log2 (for positive finite floats),
587+
assuming that the system log is monotonic.
586588
*/
587589

588590
static double

0 commit comments

Comments
 (0)