Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: stdlib-js/stdlib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9eeec88f99326526ece6c402ebe2925dbc37895e
Choose a base ref
...
head repository: stdlib-js/stdlib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 716b8e9a3aadafd3b1e00f74177444256233c002
Choose a head ref
  • 1 commit
  • 12 files changed
  • 1 contributor

Commits on Oct 1, 2026

  1. fix: avoid cancellation in stats/base/dists/kumaraswamy/logcdf

    `ln( 1 - (1 - x^a)^b )` cancels twice: `1 - x^a` rounds away the
    low-order bits of a small `x^a`, and `1 - (1 - x^a)^b` loses the digits
    of a small CDF, as `ln` of a value close to `1` does for a CDF close to
    `1`. Evaluate `ln(1-x^a)` with `log1p` or `expm1`, depending on the
    size of `x^a`, and finish with `log1mexp`. Add fixtures generated from
    the textbook formula in extended precision.
    Abhist17 committed Oct 1, 2026
    Configuration menu
    Copy the full SHA
    716b8e9 View commit details
    Browse the repository at this point in the history
Loading