Opened 11 years ago
Closed 11 years ago
#6030 closed Bugs (fixed)
formula error in log1p docs
| Reported by: | 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.)
  Note:
 See   TracTickets
 for help on using tickets.
    

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