Chapter 6: calculation using the incomplete beta function