Skip to content

Quantile for skew_normal returns invalid value #184

@yurybura

Description

@yurybura

Code example:

#include <boost/math/distributions/skew_normal.hpp>
#include <cstdlib>

int main()
{
  boost::math::skew_normal skew(573.39724735636185, 77.0, 4.0);
  const double x = boost::math::quantile(skew, 0.00285612015554148);
  const double y = boost::math::quantile(skew, 0.00285612015554149);
  const double z = boost::math::quantile(skew, 0.00285612015554150);
  std::printf("x=%g\n", x);
  std::printf("y=%g\n", y);
  std::printf("z=%g\n", z);
}

Result on Windows 10 + MSVC 19.16.27026.1 + Boost 1.67.0:

x=539.858
y=-inf
z=539.858

Result on Windows 10 + MSVC 19.16.27026.1 + Boost 1.69.0:

x=539.858
y=0
z=539.858

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions