Skip to content

Commit

Permalink
Qualify calls to erf/erfc so we don't accidentally find ::erf(double).
Browse files Browse the repository at this point in the history
  • Loading branch information
jzmaddock committed Mar 13, 2020
1 parent 12bd742 commit 5c3544c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/boost/math/special_functions/owens_t.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ namespace boost
inline RealType owens_t_znorm1(const RealType x)
{
using namespace boost::math::constants;
return erf(x*one_div_root_two<RealType>())*half<RealType>();
return boost::math::erf(x*one_div_root_two<RealType>())*half<RealType>();
} // RealType owens_t_znorm1(const RealType x)

// owens_t_znorm2(x) = P(x<=Z<oo) with Z being normally distributed.
template<typename RealType>
inline RealType owens_t_znorm2(const RealType x)
{
using namespace boost::math::constants;
return erfc(x*one_div_root_two<RealType>())*half<RealType>();
return boost::math::erfc(x*one_div_root_two<RealType>())*half<RealType>();
} // RealType owens_t_znorm2(const RealType x)

// Auxiliary function, it computes an array key that is used to determine
Expand Down

0 comments on commit 5c3544c

Please sign in to comment.