Awesome!BTW,s/boost::math::constants::root_two_pi<T>/boost::math::constants::root_two_pi<RealType>

// and (that's very tiny, solely a matter of taste and absolutely up to you) perhaps define RealType ret before nu, functions bodies like { return_type return_value; /* blah, blah, blah */; return return_value;} are IMVHO easier to read when the code related to return_value is placed on entry-point-at-{ & exit-point-at-}, not in somewhere in the middle.