static const T P[] =
{
- 2.533141220e-01,
- 5.221502603e-01,
- 6.380180669e-02,
- -5.934976547e-02
+ 2.533141220e-01f,
+ 5.221502603e-01f,
+ 6.380180669e-02f,
+ -5.934976547e-02f
};
static const T Q[] =
{
- 1.000000000e+00,
- 2.679722431e+00,
- 1.561635813e+00,
- 1.573660661e-01
+ 1.000000000e+00f,
+ 2.679722431e+00f,
+ 1.561635813e+00f,
+ 1.573660661e-01f
};
if(x < tools::log_max_value<T>())
return ((tools::evaluate_rational(P, Q, T(1 / x)) + 1) * exp(-x) / sqrt(x));