Stable root evaluation for inverse Gaussian sampling

ID: stable-root-evaluation-for-inverse-gaussian-sampling

With , the lower root is and the upper root is . Rationalizing the lower-root formula avoids subtracting nearly equal large numbers when is large.

New to topics? Read the docs here!