views:

119

answers:

2

I need to implement an inverted beta function in MySQL (similar to Excel's BETAINV).

There is some related material is available on Wolfram MathWorld's Beta Distribution page.

Any clues on where to start implementing this functionality in MySQL?

+1  A: 

Look at the cephes library, specifically cprob.tgz. Be warned that the licensing situation of that code seems to be unclear. The source code just says "free", which was a problem for Debian so apparently they got the author to relicense it under the GPL for them.

Jouni K. Seppänen
A: 

Okay, task done by moving inverted beta calculation to PHP and using code from PHPExcel package.

Kuroki Kaze