The regularised incomplete beta function (or betacdf)

Translated from Slatec/fn/betai.f