Example: Comparing the Hypergeom, Mhyper, and Fhyper Symbolic Functions
This example compares between the hypergeom, mhyper, and fhyper symbolic functions. Use the keyword float with the symbolic evaluation operator to evaluate functions numerically.
The hypergeom Function
1. Note the following integral, which is symbolically evaluated to the hypergeom function.
2. Evaluate the result at the endpoints of the interval [1, 2].
3. Ensure that the above numerical result agrees with the value of the following equivalent definite integral.
The mhyper Function
1. Note that the mhyper function returns the same results as hypergeom for the special case in which:
2. Evaluate mhyper at the specified values of a and c.
The fhyper Function
1. Define the following variables:
The fhyper function returns the same results as hypergeom for the special case in which n and d relate to a, b, and c as follows:
2. Evaluate fhyper at the specified values of a, b and c.