Functions > Symbolic Functions > Example: Comparing the Hypergeom, Mhyper, and Fhyper Symbolic Functions
  
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.
Click to copy this expression
2. Evaluate the result at the endpoints of the interval [1, 2].
Click to copy this expression
Click to copy this expression
Click to copy this expression
3. Ensure that the above numerical result agrees with the value of the following equivalent definite integral.
Click to copy this expression
The mhyper Function
1. Note that the mhyper function returns the same results as hypergeom for the special case in which:
Click to copy this expression
Click to copy this expression
2. Evaluate mhyper at the specified values of a and c.
Click to copy this expression
Click to copy this expression
Click to copy this expression
Click to copy this expression
Click to copy this expression
Click to copy this expression
The fhyper Function
1. Define the following variables:
Click to copy this expression
Click to copy this expression
Click to copy this expression
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:
Click to copy this expression
Click to copy this expression
2. Evaluate fhyper at the specified values of a, b and c.
Click to copy this expression
Click to copy this expression
Click to copy this expression
Click to copy this expression