You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(constants): replace M_* with std::numbers and add precision … (#536)
* refactor(constants): replace M_* with std::numbers and add precision comparison example
Replace legacy C-style M_PI, M_PI_4, M_E constants with C++20
std::numbers equivalents across 6 application files, eliminating the
non-portable _USE_MATH_DEFINES workaround. Update comment reference
tables in 8 files to show std::numbers as the primary API. Remove
_USE_MATH_DEFINES from 3 common headers.
Add numeric_constants.cpp example comparing pi, e, ln2, ln10, sqrt2,
and phi across 15 number systems (cfloat, posit, fixpnt, lns, dd, qd)
with ULP and relative error computed against a qd_cascade oracle.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* adding constants as a possible scope
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments