Skip to content
Snippets Groups Projects
Commit c1bda568 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

ENH: std::log and std::sqrt can't return constexpr

parent 0599fb69
No related branches found
No related tags found
No related merge requests found
......@@ -54,8 +54,8 @@ constexpr double CONST_2_PI = 0.63661977236758134308; /* 2/pi */
constexpr double CONST_2PI = 6.28318530717958647693; /* 2*pi */
constexpr double CONST_PI_180 = 0.01745329251994329577; /* pi/180 */
constexpr double CONST_180_PI = 57.2957795130823208768; /* 180/pi */
constexpr double CONST_LNPI = std::log(CONST_PI); /* ln(pi)*/
constexpr double CONST_SQRTPI = std::sqrt(CONST_PI); /* sqrt(pi)*/
const double CONST_LNPI = std::log(CONST_PI); /* ln(pi)*/
const double CONST_SQRTPI = std::sqrt(CONST_PI); /* sqrt(pi)*/
constexpr double CONST_2_SQRTPI = 1.12837916709551257390; /* 2/sqrt(pi) */
constexpr double CONST_SQRT2 = 1.41421356237309504880; /* sqrt(2) */
constexpr double CONST_SQRT1_2 = 0.70710678118654752440; /* 1/sqrt(2) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment