Skip to content

Commit 0a014fd

Browse files
committed
Fix for expression template use in chebyshev.hpp.
1 parent b57749d commit 0a014fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/math/special_functions/chebyshev.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ inline Real chebyshev_imp(unsigned n, Real const & x, const Policy&)
7777
if (x > 1 || x < -1)
7878
{
7979
Real t = sqrt(x*x -1);
80-
return static_cast<Real>((expt(x+t, n+1) - expt(x-t, n+1))/(2*t));
80+
return static_cast<Real>((expt(static_cast<Real>(x+t), n+1) - expt(static_cast<Real>(x-t), n+1))/(2*t));
8181
}
8282
T1 = 2*x;
8383
}

0 commit comments

Comments
 (0)