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

# Change! if multinomial_coefficient.c is in a different directory.
gcc -c -o a.o multinomial_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 testmultinomialcoef.c is in a different directory.
gcc -o cvers testmultinomialcoef.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 > MultinomialCoefficientTest.txt

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

