Opened 11 years ago

Closed 11 years ago

#6030 closed Bugs (fixed)

formula error in log1p docs

Reported by: Richard B. Kreckel <kreckel@…> Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost 1.47.0 Severity: Cosmetic
Keywords: Cc:

Description

The documentation page for log1p mentions the alternative formula:

log(1+x) == (log(1+x) * x) / ((1-x) - 1)

This is apparently wrong. The correct formula is:

log(1+x) == (log(1+x) * x) / ((1+x) - 1)

(Note the sign of x in the denominator.)

Change History (1)

comment:1 by John Maddock, 11 years ago

Resolution: fixed
Status: newclosed

(In [76098]) Fix doc typo and regenerate. Fixes #6030.

Note: See TracTickets for help on using tickets.