コード例 #1
0
def truncated_normal_test ( ):

#*****************************************************************************80
#
## TRUNCATED_NORMAL_TEST tests the TRUNCATED_NORMAL library.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license. 
#
#  Modified:
#
#    09 March 2015
#
#  Author:
#
#    John Burkardt
# 
  from i4_uniform_ab                  import i4_uniform_ab_test

  from normal_01_cdf                  import normal_01_cdf_test
  from normal_01_cdf_inv              import normal_01_cdf_inv_test
  from normal_01_cdf_values           import normal_01_cdf_values_test
  from normal_01_mean                 import normal_01_mean_test
  from normal_01_moment               import normal_01_moment_test
  from normal_01_pdf                  import normal_01_pdf_test
  from normal_01_sample               import normal_01_sample_test
  from normal_01_variance             import normal_01_variance_test

  from normal_ms_cdf                  import normal_ms_cdf_test
  from normal_ms_cdf_inv              import normal_ms_cdf_inv_test
  from normal_ms_mean                 import normal_ms_mean_test
  from normal_ms_moment               import normal_ms_moment_test
  from normal_ms_moment_central       import normal_ms_moment_central_test
  from normal_ms_pdf                  import normal_ms_pdf_test
  from normal_ms_sample               import normal_ms_sample_test
  from normal_ms_variance             import normal_ms_variance_test

  from r8_choose                      import r8_choose_test
  from r8_factorial2                  import r8_factorial2_test
  from r8_factorial2_values           import r8_factorial2_values_test
  from r8_mop                         import r8_mop_test
  from r8_uniform_01                  import r8_uniform_01_test

  from r8poly_print                   import r8poly_print_test
  from r8poly_value_horner            import r8poly_value_horner_test

  from r8vec_linspace                 import r8vec_linspace_test
  from r8vec_max                      import r8vec_max_test
  from r8vec_mean                     import r8vec_mean_test
  from r8vec_min                      import r8vec_min_test
  from r8vec_print                    import r8vec_print_test
  from r8vec_uniform_ab               import r8vec_uniform_ab_test
  from r8vec_variance                 import r8vec_variance_test

  from timestamp                      import timestamp_test

  from truncated_normal_a_cdf         import truncated_normal_a_cdf_test
  from truncated_normal_a_cdf_inv     import truncated_normal_a_cdf_inv_test
  from truncated_normal_a_cdf_values  import truncated_normal_a_cdf_values_test
  from truncated_normal_a_mean        import truncated_normal_a_mean_test
  from truncated_normal_a_moment      import truncated_normal_a_moment_test
  from truncated_normal_a_pdf         import truncated_normal_a_pdf_test
  from truncated_normal_a_pdf_values  import truncated_normal_a_pdf_values_test
  from truncated_normal_a_sample      import truncated_normal_a_sample_test
  from truncated_normal_a_variance    import truncated_normal_a_variance_test

  from truncated_normal_ab_cdf        import truncated_normal_ab_cdf_test
  from truncated_normal_ab_cdf_inv    import truncated_normal_ab_cdf_inv_test
  from truncated_normal_ab_cdf_values import truncated_normal_ab_cdf_values_test
  from truncated_normal_ab_mean       import truncated_normal_ab_mean_test
  from truncated_normal_ab_moment     import truncated_normal_ab_moment_test
  from truncated_normal_ab_pdf        import truncated_normal_ab_pdf_test
  from truncated_normal_ab_pdf_values import truncated_normal_ab_pdf_values_test
  from truncated_normal_ab_sample     import truncated_normal_ab_sample_test
  from truncated_normal_ab_variance   import truncated_normal_ab_variance_test

  from truncated_normal_b_cdf         import truncated_normal_b_cdf_test
  from truncated_normal_b_cdf_inv     import truncated_normal_b_cdf_inv_test
  from truncated_normal_b_cdf_values  import truncated_normal_b_cdf_values_test
  from truncated_normal_b_mean        import truncated_normal_b_mean_test
  from truncated_normal_b_moment      import truncated_normal_b_moment_test
  from truncated_normal_b_pdf         import truncated_normal_b_pdf_test
  from truncated_normal_b_pdf_values  import truncated_normal_b_pdf_values_test
  from truncated_normal_b_sample      import truncated_normal_b_sample_test
  from truncated_normal_b_variance    import truncated_normal_b_variance_test

  print ''
  print 'TRUNCATED_NORMAL_TEST'
  print '  Python version:'
  print '  Test the TRUNCATED_NORMAL library.'
#
#  Utilities:
#
  i4_uniform_ab_test ( )

  normal_01_cdf_values_test ( )

  r8_choose_test ( )
  r8_factorial2_test ( )
  r8_factorial2_values_test ( )
  r8_mop_test ( )
  r8_uniform_01_test ( )

  r8poly_print_test ( )
  r8poly_value_horner_test ( )

  r8vec_linspace_test ( )
  r8vec_max_test ( )
  r8vec_mean_test ( )
  r8vec_min_test ( )
  r8vec_print_test ( )
  r8vec_uniform_ab_test ( )
  r8vec_variance_test ( )

  truncated_normal_a_cdf_values_test ( )
  truncated_normal_a_pdf_values_test ( )

  truncated_normal_ab_cdf_values_test ( )
  truncated_normal_ab_pdf_values_test ( )

  truncated_normal_b_cdf_values_test ( )
  truncated_normal_b_pdf_values_test ( )

  timestamp_test ( )
#
#  Library:
#
  normal_01_cdf_test ( )
  normal_01_cdf_inv_test ( )
  normal_01_mean_test ( )
  normal_01_moment_test ( )
  normal_01_pdf_test ( )
  normal_01_sample_test ( )
  normal_01_variance_test ( )

  normal_ms_cdf_test ( )
  normal_ms_cdf_inv_test ( )
  normal_ms_mean_test ( )
  normal_ms_moment_test ( )
  normal_ms_moment_central_test ( )
  normal_ms_pdf_test ( )
  normal_ms_sample_test ( )
  normal_ms_variance_test ( )

  truncated_normal_a_cdf_test ( )
  truncated_normal_a_cdf_inv_test ( )
  truncated_normal_a_mean_test ( )
  truncated_normal_a_moment_test ( )
  truncated_normal_a_pdf_test ( )
  truncated_normal_a_sample_test ( )
  truncated_normal_a_variance_test ( )

  truncated_normal_ab_cdf_test ( )
  truncated_normal_ab_cdf_inv_test ( )
  truncated_normal_ab_mean_test ( )
  truncated_normal_ab_moment_test ( )
  truncated_normal_ab_pdf_test ( )
  truncated_normal_ab_sample_test ( )
  truncated_normal_ab_variance_test ( )

  truncated_normal_b_cdf_test ( )
  truncated_normal_b_cdf_inv_test ( )
  truncated_normal_b_mean_test ( )
  truncated_normal_b_moment_test ( )
  truncated_normal_b_pdf_test ( )
  truncated_normal_b_sample_test ( )
  truncated_normal_b_variance_test ( )
#
#  Terminate.
#
  print ''
  print 'TRUNCATED_NORMAL_TEST:'
  print '  Normal end of execution.'
コード例 #2
0
def r8lib_test():

    #*****************************************************************************80
    #
    ## R8LIB_TEST tests the R8LIB library.
    #
    #  Licensing:
    #
    #    This code is distributed under the GNU LGPL license.
    #
    #  Modified:
    #
    #    24 May 2015
    #
    #  Author:
    #
    #    John Burkardt
    #
    from agm_values import agm_values_test

    from gamma_values import gamma_values_test
    from gamma_log_values import gamma_log_values_test

    from i4_log_10 import i4_log_10_test
    from i4_sign import i4_sign_test
    from i4_uniform_ab import i4_uniform_ab_test

    from i4vec_indicator0 import i4vec_indicator0_test
    from i4vec_indicator1 import i4vec_indicator1_test
    from i4vec_print import i4vec_print_test
    from i4vec_transpose_print import i4vec_transpose_print_test

    from perm0_check import perm0_check_test
    from perm0_uniform import perm0_uniform_test

    from perm1_check import perm1_check_test
    from perm1_uniform import perm1_uniform_test

    from r8_abs import r8_abs_test
    from r8_acos import r8_acos_test
    from r8_acosh import r8_acosh_test
    from r8_add import r8_add_test
    from r8_agm import r8_agm_test
    from r8_asinh import r8_asinh_test
    from r8_atan import r8_atan_test
    from r8_atanh import r8_atanh_test
    from r8_big import r8_big_test
    from r8_cas import r8_cas_test
    from r8_ceiling import r8_ceiling_test
    from r8_choose import r8_choose_test
    from r8_cosd import r8_cosd_test
    from r8_cotd import r8_cotd_test
    from r8_cscd import r8_cscd_test
    from r8_cube_root import r8_cube_root_test
    from r8_diff import r8_diff_test
    from r8_digit import r8_digit_test
    from r8_e import r8_e_test
    from r8_epsilon import r8_epsilon_test
    from r8_epsilon_compute import r8_epsilon_compute_test
    from r8_factorial import r8_factorial_test
    from r8_factorial_values import r8_factorial_values_test
    from r8_factorial2 import r8_factorial2_test
    from r8_factorial2_values import r8_factorial2_values_test
    from r8_fall import r8_fall_test
    from r8_fall_values import r8_fall_values_test
    from r8_fractional import r8_fractional_test
    from r8_gamma import r8_gamma_test
    from r8_gamma_log import r8_gamma_log_test
    from r8_huge import r8_huge_test
    from r8_log_2 import r8_log_2_test
    from r8_log_b import r8_log_b_test
    from r8_mant import r8_mant_test
    from r8_max import r8_max_test
    from r8_min import r8_min_test
    from r8_mod import r8_mod_test
    from r8_modp import r8_modp_test
    from r8_mop import r8_mop_test
    from r8_nint import r8_nint_test
    from r8_normal_01 import r8_normal_01_test
    from r8_normal_ab import r8_normal_ab_test
    from r8_pi import r8_pi_test
    from r8_power import r8_power_test
    from r8_power_fast import r8_power_fast_test
    from r8_rise import r8_rise_test
    from r8_rise_values import r8_rise_values_test
    from r8_round2 import r8_round2_test
    from r8_roundb import r8_roundb_test
    from r8_roundx import r8_roundx_test
    from r8_secd import r8_secd_test
    from r8_sign import r8_sign_test
    from r8_sind import r8_sind_test
    from r8_swap import r8_swap_test
    from r8_swap3 import r8_swap3_test
    from r8_tand import r8_tand_test
    from r8_to_i4 import r8_to_i4_test
    from r8_to_r8_discrete import r8_to_r8_discrete_test
    from r8_uniform_01 import r8_uniform_01_test
    from r8_uniform_ab import r8_uniform_ab_test
    from r8_walsh_1d import r8_walsh_1d_test
    from r8_wrap import r8_wrap_test

    from r82col_print_part import r82col_print_part_test

    from r82row_print_part import r82row_print_part_test

    from r83col_print_part import r83col_print_part_test

    from r83row_print_part import r83row_print_part_test

    from r8col_swap import r8col_swap_test

    from r8mat_house_axh import r8mat_house_axh_test
    from r8mat_house_form import r8mat_house_form_test
    from r8mat_indicator import r8mat_indicator_test
    from r8mat_mm import r8mat_mm_test
    from r8mat_mtm import r8mat_mtm_test
    from r8mat_mtv import r8mat_mtv_test
    from r8mat_mv import r8mat_mv_test
    from r8mat_nint import r8mat_nint_test
    from r8mat_nonzeros import r8mat_nonzeros_test
    from r8mat_norm_fro import r8mat_norm_fro_test
    from r8mat_norm_l1 import r8mat_norm_l1_test
    from r8mat_norm_li import r8mat_norm_li_test
    from r8mat_print import r8mat_print_test
    from r8mat_print_some import r8mat_print_some_test
    from r8mat_sub import r8mat_sub_test
    from r8mat_transpose import r8mat_transpose_test
    from r8mat_transpose_print import r8mat_transpose_print_test
    from r8mat_transpose_print_some import r8mat_transpose_print_some_test
    from r8mat_uniform_01 import r8mat_uniform_01_test
    from r8mat_uniform_ab import r8mat_uniform_ab_test

    from r8poly_degree import r8poly_degree_test
    from r8poly_print import r8poly_print_test
    from r8poly_value_horner import r8poly_value_horner_test

    from r8vec_amax import r8vec_amax_test
    from r8vec_amin import r8vec_amin_test
    from r8vec_asum import r8vec_asum_test
    from r8vec_concatenate import r8vec_concatenate_test
    from r8vec_copy import r8vec_copy_test
    from r8vec_direct_product import r8vec_direct_product_test
    from r8vec_house_column import r8vec_house_column_test
    from r8vec_indicator0 import r8vec_indicator0_test
    from r8vec_indicator1 import r8vec_indicator1_test
    from r8vec_linspace import r8vec_linspace_test
    from r8vec_max import r8vec_max_test
    from r8vec_mean import r8vec_mean_test
    from r8vec_min import r8vec_min_test
    from r8vec_nint import r8vec_nint_test
    from r8vec_norm_l0 import r8vec_norm_l0_test
    from r8vec_norm_l2 import r8vec_norm_l2_test
    from r8vec_norm_li import r8vec_norm_li_test
    from r8vec_permute import r8vec_permute_test
    from r8vec_permute_uniform import r8vec_permute_uniform_test
    from r8vec_print import r8vec_print_test
    from r8vec_product import r8vec_product_test
    from r8vec_sum import r8vec_sum_test
    from r8vec_uniform_01 import r8vec_uniform_01_test
    from r8vec_uniform_ab import r8vec_uniform_ab_test
    from r8vec_variance import r8vec_variance_test

    from roots_to_r8poly import roots_to_r8poly_test

    from timestamp import timestamp_test

    print ''
    print 'R8LIB_TEST'
    print '  Python version:'
    print '  Test the R8LIB library.'

    agm_values_test()

    gamma_values_test()
    gamma_log_values_test()

    i4_log_10_test()
    i4_sign_test()
    i4_uniform_ab_test()

    i4vec_indicator0_test()
    i4vec_indicator1_test()
    i4vec_print_test()
    i4vec_transpose_print_test()

    perm0_check_test()
    perm0_uniform_test()

    perm1_check_test()
    perm1_uniform_test()

    r8_abs_test()
    r8_acos_test()
    r8_acosh_test()
    r8_add_test()
    r8_agm_test()
    r8_asinh_test()
    r8_atan_test()
    r8_atanh_test()
    r8_big_test()
    r8_cas_test()
    r8_ceiling_test()
    r8_choose_test()
    r8_cosd_test()
    r8_cotd_test()
    r8_cscd_test()
    r8_cube_root_test()
    r8_diff_test()
    r8_digit_test()
    r8_e_test()
    r8_epsilon_test()
    r8_epsilon_compute_test()
    r8_factorial_test()
    r8_factorial_values_test()
    r8_factorial2_test()
    r8_factorial2_values_test()
    r8_fall_test()
    r8_fall_values_test()
    r8_fractional_test()
    r8_gamma_test()
    r8_gamma_log_test()
    r8_huge_test()
    r8_log_2_test()
    r8_log_b_test()
    r8_mant_test()
    r8_max_test()
    r8_min_test()
    r8_mod_test()
    r8_modp_test()
    r8_mop_test()
    r8_nint_test()
    r8_normal_01_test()
    r8_normal_ab_test()
    r8_pi_test()
    r8_power_test()
    r8_power_fast_test()
    r8_rise_test()
    r8_rise_values_test()
    r8_round2_test()
    r8_roundb_test()
    r8_roundx_test()
    r8_secd_test()
    r8_sign_test()
    r8_sind_test()
    r8_swap_test()
    r8_swap3_test()
    r8_tand_test()
    r8_to_i4_test()
    r8_to_r8_discrete_test()
    r8_uniform_01_test()
    r8_uniform_ab_test()
    r8_walsh_1d_test()
    r8_wrap_test()

    r82col_print_part_test()

    r82row_print_part_test()

    r83col_print_part_test()

    r83row_print_part_test()

    r8col_swap_test()

    r8mat_house_axh_test()
    r8mat_house_form_test()
    r8mat_indicator_test()
    r8mat_mm_test()
    r8mat_mtm_test()
    r8mat_mtv_test()
    r8mat_mv_test()
    r8mat_nint_test()
    r8mat_nonzeros_test()
    r8mat_norm_fro_test()
    r8mat_norm_l1_test()
    r8mat_print_test()
    r8mat_print_some_test()
    r8mat_sub_test()
    r8mat_transpose_test()
    r8mat_transpose_print_test()
    r8mat_transpose_print_some_test()
    r8mat_uniform_01_test()
    r8mat_uniform_ab_test()

    r8poly_degree_test()
    r8poly_print_test()
    r8poly_value_horner_test()

    r8vec_amax_test()
    r8vec_amin_test()
    r8vec_asum_test()
    r8vec_concatenate_test()
    r8vec_copy_test()
    r8vec_direct_product_test()
    r8vec_house_column_test()
    r8vec_indicator0_test()
    r8vec_linspace_test()
    r8vec_max_test()
    r8vec_mean_test()
    r8vec_min_test()
    r8vec_nint_test()
    r8vec_norm_l0_test()
    r8vec_norm_l2_test()
    r8vec_norm_li_test()
    r8vec_permute_test()
    r8vec_permute_uniform_test()
    r8vec_print_test()
    r8vec_product_test()
    r8vec_sum_test()
    r8vec_uniform_01_test()
    r8vec_uniform_ab_test()
    r8vec_variance_test()

    roots_to_r8poly_test()

    timestamp_test()
    #
    #  Terminate.
    #
    print ''
    print 'R8LIB_TEST:'
    print '  Normal end of execution.'
コード例 #3
0
def test_mat_test ( ):

#*****************************************************************************80
#
## TEST_MAT_TEST tests the TEST_MAT library.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license. 
#
#  Modified:
#
#    24 March 2015
#
#  Author:
#
#    John Burkardt
#
  from bvec_next_grlex           import bvec_next_grlex_test
  from c8_i                      import c8_i_test
  from c8_normal_01              import c8_normal_01_test
  from c8_uniform_01             import c8_uniform_01_test
  from c8mat_identity            import c8mat_identity_test
  from c8mat_indicator           import c8mat_indicator_test
  from c8mat_uniform_01          import c8mat_uniform_01_test
  from c8vec_print               import c8vec_print_test
  from c8vec_uniform_01          import c8vec_uniform_01_test
  from c8vec_unity               import c8vec_unity_test
  from complete_symmetric_poly   import complete_symmetric_poly_test
  from i4_factor                 import i4_factor_test
  from i4_is_even                import i4_is_even_test
  from i4_is_odd                 import i4_is_odd_test
  from i4_is_prime               import i4_is_prime_test
  from i4_log_10                 import i4_log_10_test
  from i4_modp                   import i4_modp_test
  from i4_rise                   import i4_rise_test
  from i4_rise_values            import i4_rise_values_test
  from i4_sign                   import i4_sign_test
  from i4_uniform_ab             import i4_uniform_ab_test
  from i4_wrap                   import i4_wrap_test
  from i4mat_print               import i4mat_print_test
  from i4mat_print_some          import i4mat_print_some_test
  from i4vec_indicator0          import i4vec_indicator0_test
  from i4vec_print               import i4vec_print_test
  from legendre_symbol           import legendre_symbol_test
  from mertens                   import mertens_test
  from mertens_values            import mertens_values_test
  from moebius                   import moebius_test
  from moebius_values            import moebius_values_test
  from prime                     import prime_test
  from r8_choose                 import r8_choose_test
  from r8_factorial              import r8_factorial_test
  from r8_mop                    import r8_mop_test
  from r8_normal_01              import r8_normal_01_test
  from r8_rise                   import r8_rise_test
  from r8_sign                   import r8_sign_test
  from r8_uniform_01             import r8_uniform_01_test
  from r8_uniform_ab             import r8_uniform_ab_test
  from r8col_swap                import r8col_swap_test
  from r8mat_house_axh           import r8mat_house_axh_test
  from r8mat_house_form          import r8mat_house_form_test
  from r8mat_indicator           import r8mat_indicator_test
  from r8mat_is_eigen_left       import r8mat_is_eigen_left_test
  from r8mat_is_eigen_right      import r8mat_is_eigen_right_test
  from r8mat_is_inverse          import r8mat_is_inverse_test
  from r8mat_is_llt              import r8mat_is_llt_test
  from r8mat_is_null_left        import r8mat_is_null_left_test
  from r8mat_is_null_right       import r8mat_is_null_right_test
  from r8mat_is_plu              import r8mat_is_plu_test
  from r8mat_is_solution         import r8mat_is_solution_test
  from r8mat_mm                  import r8mat_mm_test
  from r8mat_mtm                 import r8mat_mtm_test
  from r8mat_mtv                 import r8mat_mtv_test
  from r8mat_mv                  import r8mat_mv_test
  from r8mat_norm_fro            import r8mat_norm_fro_test
  from r8mat_norm_l1             import r8mat_norm_l1_test
  from r8mat_print               import r8mat_print_test
  from r8mat_print_some          import r8mat_print_some_test
  from r8mat_sub                 import r8mat_sub_test
  from r8mat_transpose           import r8mat_transpose_test
  from r8mat_uniform_01          import r8mat_uniform_01_test
  from r8mat_uniform_ab          import r8mat_uniform_ab_test
  from r8poly_print              import r8poly_print_test
  from r8vec_house_column        import r8vec_house_column_test
  from r8vec_nint                import r8vec_nint_test
  from r8vec_norm_l2             import r8vec_norm_l2_test
  from r8vec_print               import r8vec_print_test
  from r8vec_uniform_01          import r8vec_uniform_01_test
  from r8vec_uniform_ab          import r8vec_uniform_ab_test
  from test_condition            import test_condition
  from test_determinant          import test_determinant
  from test_eigen_left           import test_eigen_left
  from test_eigen_right          import test_eigen_right
  from test_inverse              import test_inverse
  from test_llt                  import test_llt
  from test_null_left            import test_null_left
  from test_null_right           import test_null_right
  from test_plu                  import test_plu
  from test_solution             import test_solution
  from timestamp                 import timestamp_test

  print ''
  print 'TEST_MAT_TEST'
  print '  Python version:'
  print '  Test the TEST_MAT library.'
#
#  Utilities.
#
  bvec_next_grlex_test ( )

  c8_i_test ( )
  c8_normal_01_test ( )
  c8_uniform_01_test ( )

  c8mat_identity_test ( )
  c8mat_indicator_test ( )
  c8mat_uniform_01_test ( )

  c8vec_print_test ( )
  c8vec_uniform_01_test ( )
  c8vec_unity_test ( )

  complete_symmetric_poly_test ( )

  i4_factor_test ( )
  i4_is_even_test ( )
  i4_is_odd_test ( )
  i4_is_prime_test ( )
  i4_log_10_test ( )
  i4_modp_test ( )
  i4_rise_test ( )
  i4_rise_values_test ( )
  i4_sign_test ( )
  i4_uniform_ab_test ( )
  i4_wrap_test ( )

  i4mat_print_test ( )
  i4mat_print_some_test ( )

  i4vec_indicator0_test ( )
  i4vec_print_test ( )

  legendre_symbol_test ( )

  mertens_test ( )
  mertens_values_test ( )

  moebius_test ( )
  moebius_values_test ( )

  prime_test ( )

  r8_choose_test ( )
  r8_factorial_test ( )
  r8_mop_test ( )
  r8_normal_01_test ( )
  r8_rise_test ( )
  r8_sign_test ( )
  r8_uniform_01_test ( )
  r8_uniform_ab_test ( )

  r8col_swap_test ( )

  r8mat_house_axh_test ( )
  r8mat_house_form_test ( )
  r8mat_indicator_test ( )
  r8mat_is_eigen_left_test ( )
  r8mat_is_eigen_right_test ( )
  r8mat_is_inverse_test ( )
  r8mat_is_llt_test ( )
  r8mat_is_null_left_test ( )
  r8mat_is_null_right_test ( )
  r8mat_is_plu_test ( )
  r8mat_is_solution_test ( )
  r8mat_mm_test ( )
  r8mat_mtm_test ( )
  r8mat_mtv_test ( )
  r8mat_mv_test ( )
  r8mat_print_test ( )
  r8mat_print_some_test ( )
  r8mat_sub_test ( )
  r8mat_transpose_test ( )
  r8mat_uniform_01_test ( )
  r8mat_uniform_ab_test ( )

  r8poly_print_test ( )

  r8vec_house_column_test ( )
  r8vec_nint_test ( )
  r8vec_norm_l2_test ( )
  r8vec_print_test ( )
  r8vec_uniform_01_test ( )
  r8vec_uniform_ab_test ( )

  timestamp_test ( )
#
#  Interesting stuff.
#
  test_condition ( )
  test_determinant ( )
  test_eigen_left ( )
  test_eigen_right ( )
  test_inverse ( )
  test_llt ( )
  test_null_left ( )
  test_null_right ( )
  test_plu ( )
  test_solution ( )
#
#  Terminate.
#
  print ''
  print 'TEST_MAT_TEST:'
  print '  Normal end of execution.'
  print ''

  return
コード例 #4
0
def truncated_normal_rule_test ( ):

#*****************************************************************************80
#
## TRUNCATED_NORMAL_RULE_TEST tests the functions in TRUNCATED_NORMAL_RULE.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license.
#
#  Modified:
#
#    23 March 2015
#
#  Author:
#
#    John Burkardt
#
  from i4_uniform_ab              import i4_uniform_ab_test
  from moment_method              import moment_method_test
  from normal_01_cdf              import normal_01_cdf_test
  from normal_01_moment           import normal_01_moment_test
  from normal_01_pdf              import normal_01_pdf_test
  from normal_ms_moment           import normal_ms_moment_test
  from r8_choose                  import r8_choose_test
  from r8_factorial               import r8_factorial_test
  from r8_factorial2              import r8_factorial2_test
  from r8_huge                    import r8_huge_test
  from r8_mop                     import r8_mop_test
  from r8mat_print                import r8mat_print_test
  from r8mat_print_some           import r8mat_print_some_test
  from r8vec_print                import r8vec_print_test
  from r8vec_write                import r8vec_write_test
  from rule_write                 import rule_write_test
  from timestamp                  import timestamp_test
  from truncated_normal_a_moment  import truncated_normal_a_moment_test
  from truncated_normal_ab_moment import truncated_normal_ab_moment_test
  from truncated_normal_b_moment  import truncated_normal_b_moment_test
  from truncated_normal_rule      import option0_test
  from truncated_normal_rule      import option1_test
  from truncated_normal_rule      import option2_test
  from truncated_normal_rule      import option3_test

  print ''
  print 'TRUNCATED_NORMAL_RULE_TEST:'
  print '  Test the functions used by TRUNCATED_NORMAL_RULE.'
#
#  Utilities.
#
  i4_uniform_ab_test ( )
  r8_choose_test ( )
  r8_factorial_test ( )
  r8_factorial2_test ( )
  r8_huge_test ( )
  r8_mop_test ( )
  r8mat_print_test ( )
  r8mat_print_some_test ( )
  r8vec_print_test ( )
  r8vec_write_test ( )
  rule_write_test ( )
  timestamp_test ( )
#
#  Library functions.
#
  normal_01_cdf_test ( )
  normal_01_moment_test ( )
  normal_01_pdf_test ( )
  normal_ms_moment_test ( )
  truncated_normal_a_moment_test ( )
  truncated_normal_ab_moment_test ( )
  truncated_normal_b_moment_test ( )
  moment_method_test ( )
#
#  Direct calls to truncated_normal_rule:
#
  option0_test ( )
  option1_test ( )
  option2_test ( )
  option3_test ( )
#
#  Terminate.
#
  print ''
  print 'TRUNCATED_NORMAL_RULE_TEST:'
  print '  Normal end of execution.'

  return
コード例 #5
0
def r8lib_test ( ):

#*****************************************************************************80
#
## R8LIB_TEST tests the R8LIB library.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license. 
#
#  Modified:
#
#    24 May 2015
#
#  Author:
#
#    John Burkardt
#
  from agm_values                 import agm_values_test

  from gamma_values               import gamma_values_test
  from gamma_log_values           import gamma_log_values_test

  from i4_log_10                  import i4_log_10_test
  from i4_sign                    import i4_sign_test
  from i4_uniform_ab              import i4_uniform_ab_test

  from i4vec_indicator0           import i4vec_indicator0_test
  from i4vec_indicator1           import i4vec_indicator1_test
  from i4vec_print                import i4vec_print_test
  from i4vec_transpose_print      import i4vec_transpose_print_test

  from perm0_check                import perm0_check_test
  from perm0_uniform              import perm0_uniform_test

  from perm1_check                import perm1_check_test
  from perm1_uniform              import perm1_uniform_test

  from r8_abs                     import r8_abs_test
  from r8_acos                    import r8_acos_test
  from r8_acosh                   import r8_acosh_test
  from r8_add                     import r8_add_test
  from r8_agm                     import r8_agm_test
  from r8_asinh                   import r8_asinh_test
  from r8_atan                    import r8_atan_test
  from r8_atanh                   import r8_atanh_test
  from r8_big                     import r8_big_test
  from r8_cas                     import r8_cas_test
  from r8_ceiling                 import r8_ceiling_test
  from r8_choose                  import r8_choose_test
  from r8_cosd                    import r8_cosd_test
  from r8_cotd                    import r8_cotd_test
  from r8_cscd                    import r8_cscd_test
  from r8_cube_root               import r8_cube_root_test
  from r8_diff                    import r8_diff_test
  from r8_digit                   import r8_digit_test
  from r8_e                       import r8_e_test
  from r8_epsilon                 import r8_epsilon_test
  from r8_epsilon_compute         import r8_epsilon_compute_test
  from r8_factorial               import r8_factorial_test
  from r8_factorial_values        import r8_factorial_values_test
  from r8_factorial2              import r8_factorial2_test
  from r8_factorial2_values       import r8_factorial2_values_test
  from r8_fall                    import r8_fall_test
  from r8_fall_values             import r8_fall_values_test
  from r8_fractional              import r8_fractional_test
  from r8_gamma                   import r8_gamma_test
  from r8_gamma_log               import r8_gamma_log_test
  from r8_huge                    import r8_huge_test
  from r8_log_2                   import r8_log_2_test
  from r8_log_b                   import r8_log_b_test
  from r8_mant                    import r8_mant_test
  from r8_max                     import r8_max_test
  from r8_min                     import r8_min_test
  from r8_mod                     import r8_mod_test
  from r8_modp                    import r8_modp_test
  from r8_mop                     import r8_mop_test
  from r8_nint                    import r8_nint_test
  from r8_normal_01               import r8_normal_01_test
  from r8_normal_ab               import r8_normal_ab_test
  from r8_pi                      import r8_pi_test
  from r8_power                   import r8_power_test
  from r8_power_fast              import r8_power_fast_test
  from r8_rise                    import r8_rise_test
  from r8_rise_values             import r8_rise_values_test
  from r8_round2                  import r8_round2_test
  from r8_roundb                  import r8_roundb_test
  from r8_roundx                  import r8_roundx_test
  from r8_secd                    import r8_secd_test
  from r8_sign                    import r8_sign_test
  from r8_sind                    import r8_sind_test
  from r8_swap                    import r8_swap_test
  from r8_swap3                   import r8_swap3_test
  from r8_tand                    import r8_tand_test
  from r8_to_i4                   import r8_to_i4_test
  from r8_to_r8_discrete          import r8_to_r8_discrete_test
  from r8_uniform_01              import r8_uniform_01_test
  from r8_uniform_ab              import r8_uniform_ab_test
  from r8_walsh_1d                import r8_walsh_1d_test
  from r8_wrap                    import r8_wrap_test

  from r82col_print_part          import r82col_print_part_test

  from r82row_print_part          import r82row_print_part_test

  from r83col_print_part          import r83col_print_part_test

  from r83row_print_part          import r83row_print_part_test

  from r8col_swap                 import r8col_swap_test

  from r8mat_house_axh            import r8mat_house_axh_test
  from r8mat_house_form           import r8mat_house_form_test
  from r8mat_indicator            import r8mat_indicator_test
  from r8mat_mm                   import r8mat_mm_test
  from r8mat_mtm                  import r8mat_mtm_test
  from r8mat_mtv                  import r8mat_mtv_test
  from r8mat_mv                   import r8mat_mv_test
  from r8mat_nint                 import r8mat_nint_test
  from r8mat_nonzeros             import r8mat_nonzeros_test
  from r8mat_norm_fro             import r8mat_norm_fro_test
  from r8mat_norm_l1              import r8mat_norm_l1_test
  from r8mat_norm_li              import r8mat_norm_li_test
  from r8mat_print                import r8mat_print_test
  from r8mat_print_some           import r8mat_print_some_test
  from r8mat_sub                  import r8mat_sub_test
  from r8mat_transpose            import r8mat_transpose_test
  from r8mat_transpose_print      import r8mat_transpose_print_test
  from r8mat_transpose_print_some import r8mat_transpose_print_some_test
  from r8mat_uniform_01           import r8mat_uniform_01_test
  from r8mat_uniform_ab           import r8mat_uniform_ab_test

  from r8poly_degree              import r8poly_degree_test
  from r8poly_print               import r8poly_print_test
  from r8poly_value_horner        import r8poly_value_horner_test

  from r8vec_amax                 import r8vec_amax_test
  from r8vec_amin                 import r8vec_amin_test
  from r8vec_asum                 import r8vec_asum_test
  from r8vec_concatenate          import r8vec_concatenate_test
  from r8vec_copy                 import r8vec_copy_test
  from r8vec_direct_product       import r8vec_direct_product_test
  from r8vec_house_column         import r8vec_house_column_test
  from r8vec_indicator0           import r8vec_indicator0_test
  from r8vec_indicator1           import r8vec_indicator1_test
  from r8vec_linspace             import r8vec_linspace_test
  from r8vec_max                  import r8vec_max_test
  from r8vec_mean                 import r8vec_mean_test
  from r8vec_min                  import r8vec_min_test
  from r8vec_nint                 import r8vec_nint_test
  from r8vec_norm_l0              import r8vec_norm_l0_test
  from r8vec_norm_l2              import r8vec_norm_l2_test
  from r8vec_norm_li              import r8vec_norm_li_test
  from r8vec_permute              import r8vec_permute_test
  from r8vec_permute_uniform      import r8vec_permute_uniform_test
  from r8vec_print                import r8vec_print_test
  from r8vec_product              import r8vec_product_test
  from r8vec_sum                  import r8vec_sum_test
  from r8vec_uniform_01           import r8vec_uniform_01_test
  from r8vec_uniform_ab           import r8vec_uniform_ab_test
  from r8vec_variance             import r8vec_variance_test

  from roots_to_r8poly            import roots_to_r8poly_test

  from timestamp                  import timestamp_test

  print ''
  print 'R8LIB_TEST'
  print '  Python version:'
  print '  Test the R8LIB library.'

  agm_values_test ( )

  gamma_values_test ( )
  gamma_log_values_test ( )

  i4_log_10_test ( )
  i4_sign_test ( )
  i4_uniform_ab_test ( )

  i4vec_indicator0_test ( )
  i4vec_indicator1_test ( )
  i4vec_print_test ( )
  i4vec_transpose_print_test ( )

  perm0_check_test ( )
  perm0_uniform_test ( )

  perm1_check_test ( )
  perm1_uniform_test ( )

  r8_abs_test ( )
  r8_acos_test ( )
  r8_acosh_test ( )
  r8_add_test ( )
  r8_agm_test ( )
  r8_asinh_test ( )
  r8_atan_test ( )
  r8_atanh_test ( )
  r8_big_test ( )
  r8_cas_test ( )
  r8_ceiling_test ( )
  r8_choose_test ( )
  r8_cosd_test ( )
  r8_cotd_test ( )
  r8_cscd_test ( )
  r8_cube_root_test ( )
  r8_diff_test ( )
  r8_digit_test ( )
  r8_e_test ( )
  r8_epsilon_test ( )
  r8_epsilon_compute_test ( )
  r8_factorial_test ( )
  r8_factorial_values_test ( )
  r8_factorial2_test ( )
  r8_factorial2_values_test ( )
  r8_fall_test ( )
  r8_fall_values_test ( )
  r8_fractional_test ( )
  r8_gamma_test ( )
  r8_gamma_log_test ( )
  r8_huge_test ( )
  r8_log_2_test ( )
  r8_log_b_test ( )
  r8_mant_test ( )
  r8_max_test ( )
  r8_min_test ( )
  r8_mod_test ( )
  r8_modp_test ( )
  r8_mop_test ( )
  r8_nint_test ( )
  r8_normal_01_test ( )
  r8_normal_ab_test ( )
  r8_pi_test ( )
  r8_power_test ( )
  r8_power_fast_test ( )
  r8_rise_test ( )
  r8_rise_values_test ( )
  r8_round2_test ( )
  r8_roundb_test ( )
  r8_roundx_test ( )
  r8_secd_test ( )
  r8_sign_test ( )
  r8_sind_test ( )
  r8_swap_test ( )
  r8_swap3_test ( )
  r8_tand_test ( )
  r8_to_i4_test ( )
  r8_to_r8_discrete_test ( )
  r8_uniform_01_test ( )
  r8_uniform_ab_test ( )
  r8_walsh_1d_test ( )
  r8_wrap_test ( )

  r82col_print_part_test ( )

  r82row_print_part_test ( )

  r83col_print_part_test ( )

  r83row_print_part_test ( )

  r8col_swap_test ( )

  r8mat_house_axh_test ( )
  r8mat_house_form_test ( )
  r8mat_indicator_test ( )
  r8mat_mm_test ( )
  r8mat_mtm_test ( )
  r8mat_mtv_test ( )
  r8mat_mv_test ( )
  r8mat_nint_test ( )
  r8mat_nonzeros_test ( )
  r8mat_norm_fro_test ( )
  r8mat_norm_l1_test ( )
  r8mat_print_test ( )
  r8mat_print_some_test ( )
  r8mat_sub_test ( )
  r8mat_transpose_test ( )
  r8mat_transpose_print_test ( )
  r8mat_transpose_print_some_test ( )
  r8mat_uniform_01_test ( )
  r8mat_uniform_ab_test ( )

  r8poly_degree_test ( )
  r8poly_print_test ( )
  r8poly_value_horner_test ( )

  r8vec_amax_test ( )
  r8vec_amin_test ( )
  r8vec_asum_test ( )
  r8vec_concatenate_test ( )
  r8vec_copy_test ( )
  r8vec_direct_product_test ( )
  r8vec_house_column_test ( )
  r8vec_indicator0_test ( )
  r8vec_linspace_test ( )
  r8vec_max_test ( )
  r8vec_mean_test ( )
  r8vec_min_test ( )
  r8vec_nint_test ( )
  r8vec_norm_l0_test ( )
  r8vec_norm_l2_test ( )
  r8vec_norm_li_test ( )
  r8vec_permute_test ( )
  r8vec_permute_uniform_test ( )
  r8vec_print_test ( )
  r8vec_product_test ( )
  r8vec_sum_test ( )
  r8vec_uniform_01_test ( )
  r8vec_uniform_ab_test ( )
  r8vec_variance_test ( )

  roots_to_r8poly_test ( )

  timestamp_test ( )
#
#  Terminate.
#
  print ''
  print 'R8LIB_TEST:'
  print '  Normal end of execution.'
コード例 #6
0
def truncated_normal_test():

    #*****************************************************************************80
    #
    ## TRUNCATED_NORMAL_TEST tests the TRUNCATED_NORMAL library.
    #
    #  Licensing:
    #
    #    This code is distributed under the GNU LGPL license.
    #
    #  Modified:
    #
    #    09 March 2015
    #
    #  Author:
    #
    #    John Burkardt
    #
    from i4_uniform_ab import i4_uniform_ab_test

    from normal_01_cdf import normal_01_cdf_test
    from normal_01_cdf_inv import normal_01_cdf_inv_test
    from normal_01_cdf_values import normal_01_cdf_values_test
    from normal_01_mean import normal_01_mean_test
    from normal_01_moment import normal_01_moment_test
    from normal_01_pdf import normal_01_pdf_test
    from normal_01_sample import normal_01_sample_test
    from normal_01_variance import normal_01_variance_test

    from normal_ms_cdf import normal_ms_cdf_test
    from normal_ms_cdf_inv import normal_ms_cdf_inv_test
    from normal_ms_mean import normal_ms_mean_test
    from normal_ms_moment import normal_ms_moment_test
    from normal_ms_moment_central import normal_ms_moment_central_test
    from normal_ms_pdf import normal_ms_pdf_test
    from normal_ms_sample import normal_ms_sample_test
    from normal_ms_variance import normal_ms_variance_test

    from r8_choose import r8_choose_test
    from r8_factorial2 import r8_factorial2_test
    from r8_factorial2_values import r8_factorial2_values_test
    from r8_mop import r8_mop_test
    from r8_uniform_01 import r8_uniform_01_test

    from r8poly_print import r8poly_print_test
    from r8poly_value_horner import r8poly_value_horner_test

    from r8vec_linspace import r8vec_linspace_test
    from r8vec_max import r8vec_max_test
    from r8vec_mean import r8vec_mean_test
    from r8vec_min import r8vec_min_test
    from r8vec_print import r8vec_print_test
    from r8vec_uniform_ab import r8vec_uniform_ab_test
    from r8vec_variance import r8vec_variance_test

    from timestamp import timestamp_test

    from truncated_normal_a_cdf import truncated_normal_a_cdf_test
    from truncated_normal_a_cdf_inv import truncated_normal_a_cdf_inv_test
    from truncated_normal_a_cdf_values import truncated_normal_a_cdf_values_test
    from truncated_normal_a_mean import truncated_normal_a_mean_test
    from truncated_normal_a_moment import truncated_normal_a_moment_test
    from truncated_normal_a_pdf import truncated_normal_a_pdf_test
    from truncated_normal_a_pdf_values import truncated_normal_a_pdf_values_test
    from truncated_normal_a_sample import truncated_normal_a_sample_test
    from truncated_normal_a_variance import truncated_normal_a_variance_test

    from truncated_normal_ab_cdf import truncated_normal_ab_cdf_test
    from truncated_normal_ab_cdf_inv import truncated_normal_ab_cdf_inv_test
    from truncated_normal_ab_cdf_values import truncated_normal_ab_cdf_values_test
    from truncated_normal_ab_mean import truncated_normal_ab_mean_test
    from truncated_normal_ab_moment import truncated_normal_ab_moment_test
    from truncated_normal_ab_pdf import truncated_normal_ab_pdf_test
    from truncated_normal_ab_pdf_values import truncated_normal_ab_pdf_values_test
    from truncated_normal_ab_sample import truncated_normal_ab_sample_test
    from truncated_normal_ab_variance import truncated_normal_ab_variance_test

    from truncated_normal_b_cdf import truncated_normal_b_cdf_test
    from truncated_normal_b_cdf_inv import truncated_normal_b_cdf_inv_test
    from truncated_normal_b_cdf_values import truncated_normal_b_cdf_values_test
    from truncated_normal_b_mean import truncated_normal_b_mean_test
    from truncated_normal_b_moment import truncated_normal_b_moment_test
    from truncated_normal_b_pdf import truncated_normal_b_pdf_test
    from truncated_normal_b_pdf_values import truncated_normal_b_pdf_values_test
    from truncated_normal_b_sample import truncated_normal_b_sample_test
    from truncated_normal_b_variance import truncated_normal_b_variance_test

    print ''
    print 'TRUNCATED_NORMAL_TEST'
    print '  Python version:'
    print '  Test the TRUNCATED_NORMAL library.'
    #
    #  Utilities:
    #
    i4_uniform_ab_test()

    normal_01_cdf_values_test()

    r8_choose_test()
    r8_factorial2_test()
    r8_factorial2_values_test()
    r8_mop_test()
    r8_uniform_01_test()

    r8poly_print_test()
    r8poly_value_horner_test()

    r8vec_linspace_test()
    r8vec_max_test()
    r8vec_mean_test()
    r8vec_min_test()
    r8vec_print_test()
    r8vec_uniform_ab_test()
    r8vec_variance_test()

    truncated_normal_a_cdf_values_test()
    truncated_normal_a_pdf_values_test()

    truncated_normal_ab_cdf_values_test()
    truncated_normal_ab_pdf_values_test()

    truncated_normal_b_cdf_values_test()
    truncated_normal_b_pdf_values_test()

    timestamp_test()
    #
    #  Library:
    #
    normal_01_cdf_test()
    normal_01_cdf_inv_test()
    normal_01_mean_test()
    normal_01_moment_test()
    normal_01_pdf_test()
    normal_01_sample_test()
    normal_01_variance_test()

    normal_ms_cdf_test()
    normal_ms_cdf_inv_test()
    normal_ms_mean_test()
    normal_ms_moment_test()
    normal_ms_moment_central_test()
    normal_ms_pdf_test()
    normal_ms_sample_test()
    normal_ms_variance_test()

    truncated_normal_a_cdf_test()
    truncated_normal_a_cdf_inv_test()
    truncated_normal_a_mean_test()
    truncated_normal_a_moment_test()
    truncated_normal_a_pdf_test()
    truncated_normal_a_sample_test()
    truncated_normal_a_variance_test()

    truncated_normal_ab_cdf_test()
    truncated_normal_ab_cdf_inv_test()
    truncated_normal_ab_mean_test()
    truncated_normal_ab_moment_test()
    truncated_normal_ab_pdf_test()
    truncated_normal_ab_sample_test()
    truncated_normal_ab_variance_test()

    truncated_normal_b_cdf_test()
    truncated_normal_b_cdf_inv_test()
    truncated_normal_b_mean_test()
    truncated_normal_b_moment_test()
    truncated_normal_b_pdf_test()
    truncated_normal_b_sample_test()
    truncated_normal_b_variance_test()
    #
    #  Terminate.
    #
    print ''
    print 'TRUNCATED_NORMAL_TEST:'
    print '  Normal end of execution.'
コード例 #7
0
def truncated_normal_rule_test():

    #*****************************************************************************80
    #
    ## TRUNCATED_NORMAL_RULE_TEST tests the functions in TRUNCATED_NORMAL_RULE.
    #
    #  Licensing:
    #
    #    This code is distributed under the GNU LGPL license.
    #
    #  Modified:
    #
    #    23 March 2015
    #
    #  Author:
    #
    #    John Burkardt
    #
    from i4_uniform_ab import i4_uniform_ab_test
    from moment_method import moment_method_test
    from normal_01_cdf import normal_01_cdf_test
    from normal_01_moment import normal_01_moment_test
    from normal_01_pdf import normal_01_pdf_test
    from normal_ms_moment import normal_ms_moment_test
    from r8_choose import r8_choose_test
    from r8_factorial import r8_factorial_test
    from r8_factorial2 import r8_factorial2_test
    from r8_huge import r8_huge_test
    from r8_mop import r8_mop_test
    from r8mat_print import r8mat_print_test
    from r8mat_print_some import r8mat_print_some_test
    from r8vec_print import r8vec_print_test
    from r8vec_write import r8vec_write_test
    from rule_write import rule_write_test
    from timestamp import timestamp_test
    from truncated_normal_a_moment import truncated_normal_a_moment_test
    from truncated_normal_ab_moment import truncated_normal_ab_moment_test
    from truncated_normal_b_moment import truncated_normal_b_moment_test
    from truncated_normal_rule import option0_test
    from truncated_normal_rule import option1_test
    from truncated_normal_rule import option2_test
    from truncated_normal_rule import option3_test

    print ''
    print 'TRUNCATED_NORMAL_RULE_TEST:'
    print '  Test the functions used by TRUNCATED_NORMAL_RULE.'
    #
    #  Utilities.
    #
    i4_uniform_ab_test()
    r8_choose_test()
    r8_factorial_test()
    r8_factorial2_test()
    r8_huge_test()
    r8_mop_test()
    r8mat_print_test()
    r8mat_print_some_test()
    r8vec_print_test()
    r8vec_write_test()
    rule_write_test()
    timestamp_test()
    #
    #  Library functions.
    #
    normal_01_cdf_test()
    normal_01_moment_test()
    normal_01_pdf_test()
    normal_ms_moment_test()
    truncated_normal_a_moment_test()
    truncated_normal_ab_moment_test()
    truncated_normal_b_moment_test()
    moment_method_test()
    #
    #  Direct calls to truncated_normal_rule:
    #
    option0_test()
    option1_test()
    option2_test()
    option3_test()
    #
    #  Terminate.
    #
    print ''
    print 'TRUNCATED_NORMAL_RULE_TEST:'
    print '  Normal end of execution.'

    return
コード例 #8
0
def polpak_test ( ):

#*****************************************************************************80
#
## POLPAK_TEST tests the POLPAK library.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license. 
#
#  Modified:
#
#    11 April 2015
#
#  Author:
#
#    John Burkardt
#
  from agm_values                       import agm_values_test
  from agud                             import agud_test
  from align_enum                       import align_enum_test
  from bell                             import bell_test
  from bell_values                      import bell_values_test
  from benford                          import benford_test
  from bernoulli_number                 import bernoulli_number_test
  from bernoulli_number2                import bernoulli_number2_test
  from bernoulli_number3                import bernoulli_number3_test
  from bernoulli_number_values          import bernoulli_number_values_test
  from bernoulli_poly                   import bernoulli_poly_test
  from bernoulli_poly2                  import bernoulli_poly2_test
  from bernstein_poly                   import bernstein_poly_test
  from bernstein_poly_01_values         import bernstein_poly_01_values_test
  from beta_values                      import beta_values_test
  from bpab                             import bpab_test
  from cardan_poly                      import cardan_poly_test
  from cardan_poly_coef                 import cardan_poly_coef_test
  from cardinal_cos                     import cardinal_cos_test
  from cardinal_sin                     import cardinal_sin_test
  from catalan                          import catalan_test
  from catalan_row_next                 import catalan_row_next_test
  from catalan_values                   import catalan_values_test
  from charlier                         import charlier_test
  from cheby_t_poly                     import cheby_t_poly_test
  from cheby_t_poly_coef                import cheby_t_poly_coef_test
  from cheby_t_poly_values              import cheby_t_poly_values_test
  from cheby_t_poly_zero                import cheby_t_poly_zero_test
  from cheby_u_poly                     import cheby_u_poly_test
  from cheby_u_poly_coef                import cheby_u_poly_coef_test
  from cheby_u_poly_values              import cheby_u_poly_values_test
  from cheby_u_poly_zero                import cheby_u_poly_zero_test
  from chebyshev_discrete               import chebyshev_discrete_test
  from collatz_count                    import collatz_count_test
  from collatz_count_max                import collatz_count_max_test
  from collatz_count_values             import collatz_count_values_test
  from comb_row_next                    import comb_row_next_test
  from commul                           import commul_test
  from complete_symmetric_poly          import complete_symmetric_poly_test
  from cos_power_int                    import cos_power_int_test
  from cos_power_int_values             import cos_power_int_values_test
  from delannoy                         import delannoy_test
  from erf_values                       import erf_values_test
  from euler_number                     import euler_number_test
  from euler_number2                    import euler_number2_test
  from euler_number_values              import euler_number_values_test
  from euler_poly                       import euler_poly_test
  from eulerian                         import eulerian_test
  from f_hofstadter                     import f_hofstadter_test
  from fibonacci_direct                 import fibonacci_direct_test
  from fibonacci_floor                  import fibonacci_floor_test
  from fibonacci_recursive              import fibonacci_recursive_test
  from g_hofstadter                     import g_hofstadter_test
  from gamma_values                     import gamma_values_test
  from gamma_log_values                 import gamma_log_values_test
  from gegenbauer_poly                  import gegenbauer_poly_test
  from gegenbauer_poly_values           import gegenbauer_poly_values_test
  from gen_hermite_poly                 import gen_hermite_poly_test
  from gen_laguerre_poly                import gen_laguerre_poly_test
  from gud                              import gud_test
  from gud_values                       import gud_values_test
  from h_hofstadter                     import h_hofstadter_test
  from hail                             import hail_test
  from hermite_poly_phys                import hermite_poly_phys_test
  from hermite_poly_phys_coef           import hermite_poly_phys_coef_test
  from hermite_poly_phys_values         import hermite_poly_phys_values_test
  from hyper_2f1_values                 import hyper_2f1_values_test
  from i4_choose                        import i4_choose_test
  from i4_factor                        import i4_factor_test
  from i4_factorial                     import i4_factorial_test
  from i4_factorial_values              import i4_factorial_values_test
  from i4_factorial2                    import i4_factorial2_test
  from i4_factorial2_values             import i4_factorial2_values_test
  from i4_is_prime                      import i4_is_prime_test
  from i4_is_triangular                 import i4_is_triangular_test
  from i4_partition_distinct_count      import i4_partition_distinct_count_test
  from i4_to_triangle                   import i4_to_triangle_test
  from i4_uniform_ab                    import i4_uniform_ab_test
  from i4mat_print                      import i4mat_print_test
  from i4mat_print_some                 import i4mat_print_some_test
  from i4vec_print                      import i4vec_print_test
  from jacobi_poly                      import jacobi_poly_test
  from jacobi_poly_values               import jacobi_poly_values_test
  from jacobi_symbol                    import jacobi_symbol_test
  from krawtchouk                       import krawtchouk_test
  from laguerre_associated              import laguerre_associated_test
  from laguerre_poly                    import laguerre_poly_test
  from laguerre_poly_coef               import laguerre_poly_coef_test
  from laguerre_polynomial_values       import laguerre_polynomial_values_test
  from legendre_associated              import legendre_associated_test
  from legendre_associated_values       import legendre_associated_values_test
  from legendre_associated_normalized   import legendre_associated_normalized_test
  from legendre_associated_normalized_sphere_values  import legendre_associated_normalized_sphere_values_test
  from legendre_function_q              import legendre_function_q_test
  from legendre_function_q_values       import legendre_function_q_values_test
  from legendre_poly                    import legendre_poly_test
  from legendre_poly_coef               import legendre_poly_coef_test
  from legendre_poly_values             import legendre_poly_values_test
  from legendre_symbol                  import legendre_symbol_test
  from lerch                            import lerch_test
  from lerch_values                     import lerch_values_test
  from lock                             import lock_test
  from meixner                          import meixner_test
  from mertens                          import mertens_test
  from mertens_values                   import mertens_values_test
  from moebius                          import moebius_test
  from moebius_values                   import moebius_values_test
  from motzkin                          import motzkin_test
  from normal_01_cdf_inverse            import normal_01_cdf_inverse_test
  from normal_01_cdf_values             import normal_01_cdf_values_test
  from omega                            import omega_test
  from omega_values                     import omega_values_test
  from partition_distinct_count_values  import partition_distinct_count_values_test
  from pentagon_num                     import pentagon_num_test
  from phi                              import phi_test
  from phi_values                       import phi_values_test
  from plane_partition_num              import plane_partition_num_test
  from poly_bernoulli                   import poly_bernoulli_test
  from poly_coef_count                  import poly_coef_count_test
  from prime                            import prime_test
  from psi_values                       import psi_values_test
  from pyramid_num                      import pyramid_num_test
  from pyramid_square_num               import pyramid_square_num_test
  from r8_agm                           import r8_agm_test
  from r8_beta                          import r8_beta_test
  from r8_choose                        import r8_choose_test
  from r8_erf                           import r8_erf_test
  from r8_erf_inverse                   import r8_erf_inverse_test
  from r8_euler_constant                import r8_euler_constant_test
  from r8_factorial                     import r8_factorial_test
  from r8_factorial_values              import r8_factorial_values_test
  from r8_factorial_log                 import r8_factorial_log_test
  from r8_factorial_log_values          import r8_factorial_log_values_test
  from r8_gamma                         import r8_gamma_test
  from r8_gamma_log                     import r8_gamma_log_test
  from r8_huge                          import r8_huge_test
  from r8_hyper_2f1                     import r8_hyper_2f1_test
  from r8_mop                           import r8_mop_test
  from r8_nint                          import r8_nint_test
  from r8_pi                            import r8_pi_test
  from r8_psi                           import r8_psi_test
  from r8_uniform_01                    import r8_uniform_01_test
  from r8_uniform_ab                    import r8_uniform_ab_test
  from r8poly_print                     import r8poly_print_test
  from r8poly_degree                    import r8poly_degree_test
  from r8poly_value_horner              import r8poly_value_horner_test
  from r8vec_print                      import r8vec_print_test
  from sigma                            import sigma_test
  from sigma_values                     import sigma_values_test
  from simplex_num                      import simplex_num_test
  from sin_power_int                    import sin_power_int_test
  from sin_power_int_values             import sin_power_int_values_test
  from slice                            import slice_test
  from spherical_harmonic               import spherical_harmonic_test
  from spherical_harmonic_values        import spherical_harmonic_values_test
  from stirling1                        import stirling1_test
  from stirling2                        import stirling2_test
  from tau                              import tau_test
  from tetrahedron_num                  import tetrahedron_num_test
  from timestamp                        import timestamp_test
  from triangle_num                     import triangle_num_test
  from triangle_to_i4                   import triangle_to_i4_test
  from trinomial                        import trinomial_test
  from v_hofstadter                     import v_hofstadter_test
  from vibonacci                        import vibonacci_test
  from zeckendorf                       import zeckendorf_test
  from zernike_poly                     import zernike_poly_test
  from zernike_poly_coef                import zernike_poly_coef_test
  from zeta                             import zeta_test

  print ''
  print 'POLPAK_TEST'
  print '  Python version:'
  print '  Test the POLPAK library.'
#
#  Utilities.
#
  agm_values_test ( )
  bell_values_test ( )
  bernoulli_number_values_test ( )
  bernstein_poly_01_values_test ( )
  catalan_values_test ( )
  cheby_t_poly_values_test ( )
  cheby_u_poly_values_test ( )
  collatz_count_values_test ( )
  cos_power_int_values_test ( )
  erf_values_test ( )
  euler_number_values_test ( )
  gamma_values_test ( )
  gamma_log_values_test ( )
  gegenbauer_poly_values_test ( )
  gud_values_test ( )
  hermite_poly_phys_values_test ( )
  hyper_2f1_values_test ( )
  i4_factorial_values_test ( )
  i4_factorial2_values_test ( )
  i4_uniform_ab_test ( )
  i4mat_print_test ( )
  i4mat_print_some_test ( )
  i4vec_print_test ( )
  jacobi_poly_values_test ( )
  laguerre_polynomial_values_test ( )
  legendre_associated_values_test ( )
  legendre_associated_normalized_sphere_values_test ( )
  legendre_function_q_values_test ( )
  legendre_poly_values_test ( )
  lerch_values_test ( )
  mertens_values_test ( )
  moebius_values_test ( )
  normal_01_cdf_inverse_test ( )
  normal_01_cdf_values_test ( )
  omega_values_test ( )
  partition_distinct_count_values_test ( )
  phi_values_test ( )
  psi_values_test ( )
  r8_factorial_values_test ( )
  r8_factorial_log_values_test ( )
  r8_huge_test ( )
  r8_mop_test ( )
  r8_nint_test ( )
  r8_pi_test ( )
  r8_uniform_01_test ( )
  r8_uniform_ab_test ( )
  r8poly_degree_test ( )
  r8poly_print_test ( )
  r8poly_value_horner_test ( )
  r8vec_print_test ( )
  sigma_values_test ( )
  sin_power_int_values_test ( )
  spherical_harmonic_values_test ( )
  timestamp_test ( )
#
#  Interesting stuff.
#
  agud_test ( )
  align_enum_test ( )
  bell_test ( )
  benford_test ( )
  bernoulli_number_test ( )
  bernoulli_number2_test ( )
  bernoulli_number3_test ( )
  bernoulli_poly_test ( )
  bernoulli_poly2_test ( )
  bernstein_poly_test ( )
  bpab_test ( )
  cardan_poly_test ( )
  cardan_poly_coef_test ( )
  cardinal_cos_test ( )
  cardinal_sin_test ( )
  catalan_test ( )
  catalan_row_next_test ( )
  charlier_test ( )
  cheby_t_poly_test ( )
  cheby_t_poly_coef_test ( )
  cheby_t_poly_zero_test ( )
  cheby_u_poly_test ( )
  cheby_u_poly_coef_test ( )
  chebyshev_discrete_test ( )
  collatz_count_test ( )
  comb_row_next_test ( )
  commul_test ( )
  complete_symmetric_poly_test ( )
  cos_power_int_test ( )
  delannoy_test ( )
  euler_number_test ( )
  euler_number2_test ( )
  euler_poly_test ( )
  eulerian_test ( )
  f_hofstadter_test ( )
  fibonacci_direct_test ( )
  fibonacci_floor_test ( )
  fibonacci_recursive_test ( )
  g_hofstadter_test ( )
  gegenbauer_poly_test ( )
  gen_hermite_poly_test ( )
  gen_laguerre_poly_test ( )
  gud_test ( )
  h_hofstadter_test ( )
  hail_test ( )
  hermite_poly_phys_test ( )
  hermite_poly_phys_coef_test ( )
  i4_choose_test ( )
  i4_factor_test ( )
  i4_factorial_test ( )
  i4_factorial2_test ( )
  i4_is_prime_test ( )
  i4_is_triangular_test ( )
  i4_partition_distinct_count_test ( )
  i4_to_triangle_test ( )
  jacobi_poly_test ( )
  jacobi_symbol_test ( )
  krawtchouk_test ( )
  laguerre_associated_test ( )
  laguerre_poly_test ( )
  laguerre_poly_coef_test ( )
  legendre_associated_test ( )
  legendre_associated_normalized_test ( )
  legendre_function_q_test ( )
  legendre_poly_test ( )
  legendre_poly_coef_test ( )
  legendre_symbol_test ( )
  lerch_test ( )
  lock_test ( )
  meixner_test ( )
  mertens_test ( )
  moebius_test ( )
  motzkin_test ( )
  omega_test ( )
  pentagon_num_test ( )
  phi_test ( )
  plane_partition_num_test ( )
  poly_bernoulli_test ( )
  poly_coef_count_test ( )
  prime_test ( )
  pyramid_num_test ( )
  pyramid_square_num_test ( )
  r8_agm_test ( )
  r8_beta_test ( )
  r8_choose_test ( )
  r8_erf_test ( )
  r8_erf_inverse_test ( )
  r8_euler_constant_test ( )
  r8_factorial_test ( )
  r8_factorial_log_test ( )
  r8_gamma_test ( )
  r8_gamma_log_test ( )
  r8_hyper_2f1_test ( )
  r8_psi_test ( )
  sigma_test ( )
  simplex_num_test ( )
  sin_power_int_test ( )
  slice_test ( )
  spherical_harmonic_test ( )
  stirling1_test ( )
  stirling2_test ( )
  tau_test ( )
  tetrahedron_num_test ( )
  triangle_num_test ( )
  triangle_to_i4_test ( )
  trinomial_test ( )
  v_hofstadter_test ( )
  vibonacci_test ( )
  zeckendorf_test ( )
  zernike_poly_test ( )
  zernike_poly_coef_test ( )
  zeta_test ( )
#
#  Terminate.
#
  print ''
  print 'POLPAK_TEST:'
  print '  Normal end of execution.'
コード例 #9
0
def polpak_test():

    #*****************************************************************************80
    #
    ## POLPAK_TEST tests the POLPAK library.
    #
    #  Licensing:
    #
    #    This code is distributed under the GNU LGPL license.
    #
    #  Modified:
    #
    #    11 April 2015
    #
    #  Author:
    #
    #    John Burkardt
    #
    from agm_values import agm_values_test
    from agud import agud_test
    from align_enum import align_enum_test
    from bell import bell_test
    from bell_values import bell_values_test
    from benford import benford_test
    from bernoulli_number import bernoulli_number_test
    from bernoulli_number2 import bernoulli_number2_test
    from bernoulli_number3 import bernoulli_number3_test
    from bernoulli_number_values import bernoulli_number_values_test
    from bernoulli_poly import bernoulli_poly_test
    from bernoulli_poly2 import bernoulli_poly2_test
    from bernstein_poly import bernstein_poly_test
    from bernstein_poly_01_values import bernstein_poly_01_values_test
    from beta_values import beta_values_test
    from bpab import bpab_test
    from cardan_poly import cardan_poly_test
    from cardan_poly_coef import cardan_poly_coef_test
    from cardinal_cos import cardinal_cos_test
    from cardinal_sin import cardinal_sin_test
    from catalan import catalan_test
    from catalan_row_next import catalan_row_next_test
    from catalan_values import catalan_values_test
    from charlier import charlier_test
    from cheby_t_poly import cheby_t_poly_test
    from cheby_t_poly_coef import cheby_t_poly_coef_test
    from cheby_t_poly_values import cheby_t_poly_values_test
    from cheby_t_poly_zero import cheby_t_poly_zero_test
    from cheby_u_poly import cheby_u_poly_test
    from cheby_u_poly_coef import cheby_u_poly_coef_test
    from cheby_u_poly_values import cheby_u_poly_values_test
    from cheby_u_poly_zero import cheby_u_poly_zero_test
    from chebyshev_discrete import chebyshev_discrete_test
    from collatz_count import collatz_count_test
    from collatz_count_max import collatz_count_max_test
    from collatz_count_values import collatz_count_values_test
    from comb_row_next import comb_row_next_test
    from commul import commul_test
    from complete_symmetric_poly import complete_symmetric_poly_test
    from cos_power_int import cos_power_int_test
    from cos_power_int_values import cos_power_int_values_test
    from delannoy import delannoy_test
    from erf_values import erf_values_test
    from euler_number import euler_number_test
    from euler_number2 import euler_number2_test
    from euler_number_values import euler_number_values_test
    from euler_poly import euler_poly_test
    from eulerian import eulerian_test
    from f_hofstadter import f_hofstadter_test
    from fibonacci_direct import fibonacci_direct_test
    from fibonacci_floor import fibonacci_floor_test
    from fibonacci_recursive import fibonacci_recursive_test
    from g_hofstadter import g_hofstadter_test
    from gamma_values import gamma_values_test
    from gamma_log_values import gamma_log_values_test
    from gegenbauer_poly import gegenbauer_poly_test
    from gegenbauer_poly_values import gegenbauer_poly_values_test
    from gen_hermite_poly import gen_hermite_poly_test
    from gen_laguerre_poly import gen_laguerre_poly_test
    from gud import gud_test
    from gud_values import gud_values_test
    from h_hofstadter import h_hofstadter_test
    from hail import hail_test
    from hermite_poly_phys import hermite_poly_phys_test
    from hermite_poly_phys_coef import hermite_poly_phys_coef_test
    from hermite_poly_phys_values import hermite_poly_phys_values_test
    from hyper_2f1_values import hyper_2f1_values_test
    from i4_choose import i4_choose_test
    from i4_factor import i4_factor_test
    from i4_factorial import i4_factorial_test
    from i4_factorial_values import i4_factorial_values_test
    from i4_factorial2 import i4_factorial2_test
    from i4_factorial2_values import i4_factorial2_values_test
    from i4_is_prime import i4_is_prime_test
    from i4_is_triangular import i4_is_triangular_test
    from i4_partition_distinct_count import i4_partition_distinct_count_test
    from i4_to_triangle import i4_to_triangle_test
    from i4_uniform_ab import i4_uniform_ab_test
    from i4mat_print import i4mat_print_test
    from i4mat_print_some import i4mat_print_some_test
    from i4vec_print import i4vec_print_test
    from jacobi_poly import jacobi_poly_test
    from jacobi_poly_values import jacobi_poly_values_test
    from jacobi_symbol import jacobi_symbol_test
    from krawtchouk import krawtchouk_test
    from laguerre_associated import laguerre_associated_test
    from laguerre_poly import laguerre_poly_test
    from laguerre_poly_coef import laguerre_poly_coef_test
    from laguerre_polynomial_values import laguerre_polynomial_values_test
    from legendre_associated import legendre_associated_test
    from legendre_associated_values import legendre_associated_values_test
    from legendre_associated_normalized import legendre_associated_normalized_test
    from legendre_associated_normalized_sphere_values import legendre_associated_normalized_sphere_values_test
    from legendre_function_q import legendre_function_q_test
    from legendre_function_q_values import legendre_function_q_values_test
    from legendre_poly import legendre_poly_test
    from legendre_poly_coef import legendre_poly_coef_test
    from legendre_poly_values import legendre_poly_values_test
    from legendre_symbol import legendre_symbol_test
    from lerch import lerch_test
    from lerch_values import lerch_values_test
    from lock import lock_test
    from meixner import meixner_test
    from mertens import mertens_test
    from mertens_values import mertens_values_test
    from moebius import moebius_test
    from moebius_values import moebius_values_test
    from motzkin import motzkin_test
    from normal_01_cdf_inverse import normal_01_cdf_inverse_test
    from normal_01_cdf_values import normal_01_cdf_values_test
    from omega import omega_test
    from omega_values import omega_values_test
    from partition_distinct_count_values import partition_distinct_count_values_test
    from pentagon_num import pentagon_num_test
    from phi import phi_test
    from phi_values import phi_values_test
    from plane_partition_num import plane_partition_num_test
    from poly_bernoulli import poly_bernoulli_test
    from poly_coef_count import poly_coef_count_test
    from prime import prime_test
    from psi_values import psi_values_test
    from pyramid_num import pyramid_num_test
    from pyramid_square_num import pyramid_square_num_test
    from r8_agm import r8_agm_test
    from r8_beta import r8_beta_test
    from r8_choose import r8_choose_test
    from r8_erf import r8_erf_test
    from r8_erf_inverse import r8_erf_inverse_test
    from r8_euler_constant import r8_euler_constant_test
    from r8_factorial import r8_factorial_test
    from r8_factorial_values import r8_factorial_values_test
    from r8_factorial_log import r8_factorial_log_test
    from r8_factorial_log_values import r8_factorial_log_values_test
    from r8_gamma import r8_gamma_test
    from r8_gamma_log import r8_gamma_log_test
    from r8_huge import r8_huge_test
    from r8_hyper_2f1 import r8_hyper_2f1_test
    from r8_mop import r8_mop_test
    from r8_nint import r8_nint_test
    from r8_pi import r8_pi_test
    from r8_psi import r8_psi_test
    from r8_uniform_01 import r8_uniform_01_test
    from r8_uniform_ab import r8_uniform_ab_test
    from r8poly_print import r8poly_print_test
    from r8poly_degree import r8poly_degree_test
    from r8poly_value_horner import r8poly_value_horner_test
    from r8vec_print import r8vec_print_test
    from sigma import sigma_test
    from sigma_values import sigma_values_test
    from simplex_num import simplex_num_test
    from sin_power_int import sin_power_int_test
    from sin_power_int_values import sin_power_int_values_test
    from slice import slice_test
    from spherical_harmonic import spherical_harmonic_test
    from spherical_harmonic_values import spherical_harmonic_values_test
    from stirling1 import stirling1_test
    from stirling2 import stirling2_test
    from tau import tau_test
    from tetrahedron_num import tetrahedron_num_test
    from timestamp import timestamp_test
    from triangle_num import triangle_num_test
    from triangle_to_i4 import triangle_to_i4_test
    from trinomial import trinomial_test
    from v_hofstadter import v_hofstadter_test
    from vibonacci import vibonacci_test
    from zeckendorf import zeckendorf_test
    from zernike_poly import zernike_poly_test
    from zernike_poly_coef import zernike_poly_coef_test
    from zeta import zeta_test

    print ''
    print 'POLPAK_TEST'
    print '  Python version:'
    print '  Test the POLPAK library.'
    #
    #  Utilities.
    #
    agm_values_test()
    bell_values_test()
    bernoulli_number_values_test()
    bernstein_poly_01_values_test()
    catalan_values_test()
    cheby_t_poly_values_test()
    cheby_u_poly_values_test()
    collatz_count_values_test()
    cos_power_int_values_test()
    erf_values_test()
    euler_number_values_test()
    gamma_values_test()
    gamma_log_values_test()
    gegenbauer_poly_values_test()
    gud_values_test()
    hermite_poly_phys_values_test()
    hyper_2f1_values_test()
    i4_factorial_values_test()
    i4_factorial2_values_test()
    i4_uniform_ab_test()
    i4mat_print_test()
    i4mat_print_some_test()
    i4vec_print_test()
    jacobi_poly_values_test()
    laguerre_polynomial_values_test()
    legendre_associated_values_test()
    legendre_associated_normalized_sphere_values_test()
    legendre_function_q_values_test()
    legendre_poly_values_test()
    lerch_values_test()
    mertens_values_test()
    moebius_values_test()
    normal_01_cdf_inverse_test()
    normal_01_cdf_values_test()
    omega_values_test()
    partition_distinct_count_values_test()
    phi_values_test()
    psi_values_test()
    r8_factorial_values_test()
    r8_factorial_log_values_test()
    r8_huge_test()
    r8_mop_test()
    r8_nint_test()
    r8_pi_test()
    r8_uniform_01_test()
    r8_uniform_ab_test()
    r8poly_degree_test()
    r8poly_print_test()
    r8poly_value_horner_test()
    r8vec_print_test()
    sigma_values_test()
    sin_power_int_values_test()
    spherical_harmonic_values_test()
    timestamp_test()
    #
    #  Interesting stuff.
    #
    agud_test()
    align_enum_test()
    bell_test()
    benford_test()
    bernoulli_number_test()
    bernoulli_number2_test()
    bernoulli_number3_test()
    bernoulli_poly_test()
    bernoulli_poly2_test()
    bernstein_poly_test()
    bpab_test()
    cardan_poly_test()
    cardan_poly_coef_test()
    cardinal_cos_test()
    cardinal_sin_test()
    catalan_test()
    catalan_row_next_test()
    charlier_test()
    cheby_t_poly_test()
    cheby_t_poly_coef_test()
    cheby_t_poly_zero_test()
    cheby_u_poly_test()
    cheby_u_poly_coef_test()
    chebyshev_discrete_test()
    collatz_count_test()
    comb_row_next_test()
    commul_test()
    complete_symmetric_poly_test()
    cos_power_int_test()
    delannoy_test()
    euler_number_test()
    euler_number2_test()
    euler_poly_test()
    eulerian_test()
    f_hofstadter_test()
    fibonacci_direct_test()
    fibonacci_floor_test()
    fibonacci_recursive_test()
    g_hofstadter_test()
    gegenbauer_poly_test()
    gen_hermite_poly_test()
    gen_laguerre_poly_test()
    gud_test()
    h_hofstadter_test()
    hail_test()
    hermite_poly_phys_test()
    hermite_poly_phys_coef_test()
    i4_choose_test()
    i4_factor_test()
    i4_factorial_test()
    i4_factorial2_test()
    i4_is_prime_test()
    i4_is_triangular_test()
    i4_partition_distinct_count_test()
    i4_to_triangle_test()
    jacobi_poly_test()
    jacobi_symbol_test()
    krawtchouk_test()
    laguerre_associated_test()
    laguerre_poly_test()
    laguerre_poly_coef_test()
    legendre_associated_test()
    legendre_associated_normalized_test()
    legendre_function_q_test()
    legendre_poly_test()
    legendre_poly_coef_test()
    legendre_symbol_test()
    lerch_test()
    lock_test()
    meixner_test()
    mertens_test()
    moebius_test()
    motzkin_test()
    omega_test()
    pentagon_num_test()
    phi_test()
    plane_partition_num_test()
    poly_bernoulli_test()
    poly_coef_count_test()
    prime_test()
    pyramid_num_test()
    pyramid_square_num_test()
    r8_agm_test()
    r8_beta_test()
    r8_choose_test()
    r8_erf_test()
    r8_erf_inverse_test()
    r8_euler_constant_test()
    r8_factorial_test()
    r8_factorial_log_test()
    r8_gamma_test()
    r8_gamma_log_test()
    r8_hyper_2f1_test()
    r8_psi_test()
    sigma_test()
    simplex_num_test()
    sin_power_int_test()
    slice_test()
    spherical_harmonic_test()
    stirling1_test()
    stirling2_test()
    tau_test()
    tetrahedron_num_test()
    triangle_num_test()
    triangle_to_i4_test()
    trinomial_test()
    v_hofstadter_test()
    vibonacci_test()
    zeckendorf_test()
    zernike_poly_test()
    zernike_poly_coef_test()
    zeta_test()
    #
    #  Terminate.
    #
    print ''
    print 'POLPAK_TEST:'
    print '  Normal end of execution.'