Updates for the incomplete beta functions in scipy.special

Warren Weckesser <[email protected]> Wed, 10 May 2023 18:11:39 -0400
Newsgroups gmane.comp.python.scientific.devel
Message-ID <CAGzF1ueNWGvj_+7NcYJ5q0v=kDPk7QwmJHjSfW4ev3YovpOomA@mail.gmail.com>
Hey all,

In the pull request https://github.com/scipy/scipy/pull/17697, I
propose the following changes for functions in `scipy.special` that
are related to the incomplete beta function:

* Use boost's `ibeta` as the backend for `special.betainc` and boost's
`ibeta_inv` as the backend for `special.betaincinv`.  This replaces
the Cephes-based backend for these functions.
* Add `special.betaincc` and `special.betainccinv` as wrappers of
boost's  `ibetac` and `ibetac_inv`, resp. These are the
"complementary" versions of  the functions.
* Make the existing names `special.btdtr` and `special.btdtri` aliases
of  `special.betainc` and `special.betaincinv`, resp.

The names for the new functions `betaincc` and `betainccinv` follow
the  pattern of the names of the existing incomplete gamma functions.
That is, the names betainc, betaincinv, betaincc and betainccinv are
analogous to the existing names gammainc, gammaincinv, gammaincc and
gammainccinv.

Because this introduces the new functions `betaincc` and
`betainccinv`, it  is more than a basic maintenance change, so
feedback from the mailing list would be appreciated.

Warren
_______________________________________________
SciPy-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/scipy-dev.python.org/
Member address: [email protected]