#  Test the function Binomial_Coefficient() and xBinomial_Coefficient() in the 
#  file binomial_coefficient.c.                 
#
#  Dependent on:
#     factorial.c, ln_factorial.c
#
#  After downloading change permissions: chmod 744 testbinomialcoef.sh 
#  Execute as ./testbinomialcoef.sh (unless your profile has a PATH set to
#                                    this directory)

# Change! if binomial_coefficient.c is in a different directory.
gcc -c -o a.o binomial_coefficient.c

# Change! if factorial.c is in a different directory.
gcc -c -o x.o factorial.c

# Change! if ln_factorial.c is in a different directory.
gcc -c -o y.o ln_factorial.c

# Change! if testbinomialcoef.c is in a different directory.
gcc -o cvers testbinomialcoef.c a.o x.o y.o -lm

# Change! if you profile has a PATH set to this directory or you
# want to change the name of the output file.

./cvers > BinomialCoefficientTest.txt

# Delete temporary files.
rm cvers
rm a.o
rm x.o
rm y.o

