Modify ↓

Opened 6 years ago

Closed 6 years ago

## #5982 closed Bugs (fixed)

# Wrong value of `one_div_two_pi' in <boost/math/constants/constants.hpp>

Reported by: | Owned by: | John Maddock | |
---|---|---|---|

Milestone: | To Be Determined | Component: | math |

Version: | Boost 1.47.0 | Severity: | Problem |

Keywords: | Cc: |

### Description

The value of `one_div_two_pi' defined in <boost/math/constants/constants.hpp> is wrong, although it is neither documented nor used in any other component.

### Attachments (0)

### Change History (5)

### comment:1 Changed 6 years ago by

Resolution: | → fixed |
---|---|

Status: | new → closed |

### comment:2 Changed 6 years ago by

### comment:3 Changed 6 years ago by

This bug is not closed in 1_48_0. "one_div_two_pi" still appears in <boost/math/constants/constants.hpp>, with the numeric value of "half_root_two".

### comment:4 Changed 6 years ago by

Resolution: | fixed |
---|---|

Status: | closed → reopened |

### comment:5 Changed 6 years ago by

Resolution: | → fixed |
---|---|

Status: | reopened → closed |

**Note:**See TracTickets for help on using tickets.

(In [74890]) Remove unused constants. Fix expression for tolerance in eps_tolerance. Add include guards to prime.hpp. Fixes #5982. Fixes #5927. Fixes #6001.