Gamma function in Ada?

Ara there any handy package to calculate the gamma function (in Ada)?

reinert

Mathpaqs has it (it’s also in alire). Looks like picomath also has it, but I’ve not tested it.

It was also done in Rosetta Code.

2 Likes

Real-valued Gamma function using Chebyshev series:

4 Likes

I can’t believe I forgot Simple Components :sweat_smile:

1 Like

Suggest translating from FORTRAN in Cambridge Press “Numerical Recipes”:
it’s never too late to become a good FORTAN programmer in Ada.

1 Like

I do not blame you… The question of “is there a library in Ada that can do XX?”, can be answered nearly always with “Simple Components” :stuck_out_tongue:

It is so complete we almost always never think of it as a special or exotic answer :slight_smile:

Huge thanks @dmitry-kazakov!

4 Likes