We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b57749d commit 0a014fdCopy full SHA for 0a014fd
1 file changed
include/boost/math/special_functions/chebyshev.hpp
@@ -77,7 +77,7 @@ inline Real chebyshev_imp(unsigned n, Real const & x, const Policy&)
77
if (x > 1 || x < -1)
78
{
79
Real t = sqrt(x*x -1);
80
- return static_cast<Real>((expt(x+t, n+1) - expt(x-t, n+1))/(2*t));
+ return static_cast<Real>((expt(static_cast<Real>(x+t), n+1) - expt(static_cast<Real>(x-t), n+1))/(2*t));
81
}
82
T1 = 2*x;
83
0 commit comments