Skip to content

Commit

Permalink
M_PI is non-standard
Browse files Browse the repository at this point in the history
  • Loading branch information
ddemidov committed Jul 14, 2018
1 parent 68579a6 commit e63c095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion amgcl/relaxation/chebyshev.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class chebyshev {
// Chebyshev polynomial roots on the interval [lo, hi].
std::vector<scalar_type> roots(prm.degree);
for(unsigned i = 0; i < prm.degree; ++i) {
scalar_type pi = static_cast<scalar_type>(M_PI);
scalar_type pi = static_cast<scalar_type>(3.14159265358979323846);
scalar_type half = static_cast<scalar_type>(0.5);

roots[i] = lo + half * (hi - lo) * (1 + cos( pi * ( i + half ) / prm.degree));
Expand Down

0 comments on commit e63c095

Please sign in to comment.