mirror of
https://github.com/boostorg/math.git
synced 2026-01-28 07:22:12 +00:00
Fix buggy last commit.
[SVN r83808]
This commit is contained in:
@@ -119,7 +119,7 @@ std::complex<T> spherical_harmonic(unsigned n, int m, U theta, U phi, const Poli
|
||||
if(m&1)
|
||||
{
|
||||
// Check phase if theta is outside [0, PI]:
|
||||
U mod = boost::math::tools::fmod_workaround(theta, T(2 * constants::pi<U>()));
|
||||
U mod = boost::math::tools::fmod_workaround(theta, U(2 * constants::pi<U>()));
|
||||
if(mod < 0)
|
||||
mod += 2 * constants::pi<U>();
|
||||
if(mod > constants::pi<U>())
|
||||
|
||||
Reference in New Issue
Block a user