test15’s documentation

test15 is compiled by Makefile and it can be run using run.sh. The program uses mod_safe/func_hypergeometric(), mod_safe/func_mean(), mod_safe/func_rising_factorial(), mod_safe/func_stddev(), mod_safe/func_stderr(), mod_safe/func_t_CDF(), mod_safe/func_t_PDF(), mod_safe/func_var() and mod_safe/sub_ttest_ind(). The correct output should be similar to (give or take random number generators):

How does Python compare to FORTRAN? (func_rising_factorial)

Python = 1.000000000; 120.000000000; 20.529581934

FORTRAN = 1.000000000; 120.000000000; 20.529581934

How does Python compare to FORTRAN? (func_hypergeometric)

Python = 1.386294361; 1.098612289; 0.927295218; 0.577350269

FORTRAN = 1.386294361; 1.098612289; 0.927295218; 0.000000000

How does Python compare to FORTRAN? (func_t_PDF)

Python = 0.353553391; 0.068041382; 0.068041382; 0.001757438

FORTRAN = 0.353553391; 0.068041382; 0.068041382; 0.001757438

How does Python compare to FORTRAN? (func_t_CDF)

Python = 0.500000000; 0.091751710; 0.908248290; 0.997947642

FORTRAN = 0.500000000; 0.500000000; 0.500000000; 0.500000000

mean = 30.02, var = 0.002, std-dev = 0.045, std-err = 0.020 mean = 29.92, var = 0.010, std-dev = 0.098, std-err = 0.044 TRUE : t = 1.959, p = 0.07857 FALSE: t = 1.959, p = 0.09077

program  test15

Import standard modules …

Use :

iso_fortran_env, mod_safe (func_hypergeometric(), func_mean(), func_rising_factorial(), func_stddev(), func_stderr(), func_t_cdf(), func_t_pdf(), func_var(), sub_allocate_array(), sub_ttest_ind())

Call to:

func_rising_factorial(), func_hypergeometric(), func_t_pdf(), func_t_cdf(), func_var(), func_stddev(), func_stderr(), sub_ttest_ind()