Commit d0794d25 authored by ledig's avatar ledig
Browse files

[FIX] compiles in Win

parent b626bca0
......@@ -29,7 +29,8 @@
#include "WSymmetricSphericalHarmonic.h"
using wmath::WSymmetricSphericalHarmonic;
namespace wmath
{
WSymmetricSphericalHarmonic::WSymmetricSphericalHarmonic() :
m_order( 0 ),
......@@ -95,7 +96,7 @@ void WSymmetricSphericalHarmonic::applyFunkRadonTransformation()
{
lj = 2 * ( ( j == 1 ) ? 0 : ( size_t )( j+2 )/4 );
// lj is always even!
factor = 2.0 * wmath::piDouble * static_cast<double>( std::pow( -1, ( lj / 2 ) ) ) *
factor = 2.0 * wmath::piDouble * static_cast<double>( std::pow( -1.0, ( lj / 2.0 ) ) ) *
static_cast<double>( wmath::oddFactorial( lj ) ) / static_cast<double>( wmath::evenFactorial( lj ) );
// factor = (double) std::pow( -1, ( lj / 2 ) ) * (double)wmath::oddFaculty( lj ) / (double)wmath::evenFaculty( lj );
// std::cerr << "factor: " << factor << std::endl;
......@@ -107,3 +108,5 @@ size_t WSymmetricSphericalHarmonic::getOrder() const
{
return m_order;
}
}
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment