示例#1
0
def subset_test ( ):

#*****************************************************************************80
#
## SUBSET_TEST tests the SUBSET library.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license. 
#
#  Modified:
#
#    31 May 2015
#
#  Author:
#
#    John Burkardt
#
  from agm_values                     import agm_values_test
  from asm_enum                       import asm_enum_test
  from asm_triangle                   import asm_triangle_test
  from bell                           import bell_test
  from bell_values                    import bell_values_test
  from catalan                        import catalan_test
  from catalan_row_next               import catalan_row_next_test
  from catalan_values                 import catalan_values_test
  from cfrac_to_rat                   import cfrac_to_rat_test
  from change_greedy                  import change_greedy_test
  from change_next                    import change_next_test
  from chinese_check                  import chinese_check_test
  from chinese_to_i4                  import chinese_to_i4_test
  from comb_next                      import comb_next_test
  from comb_row_next                  import comb_row_next_test
  from comb_unrank                    import comb_unrank_test
  from comp_enum                      import comp_enum_test
  from comp_next                      import comp_next_test
  from comp_next_grlex                import comp_next_grlex_test
  from comp_random_grlex              import comp_random_grlex_test
  from comp_rank_grlex                import comp_rank_grlex_test
  from comp_to_ksub                   import comp_to_ksub_test
  from comp_unrank_grlex              import comp_unrank_grlex_test
  from compnz_enum                    import compnz_enum_test
  from compnz_next                    import compnz_next_test
  from compnz_to_ksub                 import compnz_to_ksub_test
  from compnz_random                  import compnz_random_test
  from congruence                     import congruence_test
  from count_pose_random              import count_pose_random_test
  from derange_enum                   import derange_enum_test
  from derange_enum2                  import derange_enum2_test
  from derange_enum3                  import derange_enum3_test
  from digraph_arc_print              import digraph_arc_print_test
  from dvec_add                       import dvec_add_test
  from dvec_complementx               import dvec_complementx_test
  from dvec_mul                       import dvec_mul_test
  from dvec_print                     import dvec_print_test
  from dvec_sub                       import dvec_sub_test
  from dvec_to_i4                     import dvec_to_i4_test
  from equiv_print                    import equiv_print_test
  from equiv_print2                   import equiv_print2_test
  from equiv_random                   import equiv_random_test
  from euler                          import euler_test
  from frobenius_number_order2        import frobenius_number_order2_test
  from frobenius_number_order2_values import frobenius_number_order2_values_test
  from gamma_values                   import gamma_values_test
  from gamma_log_values               import gamma_log_values_test
  from gray_rank2                     import gray_rank2_test
  from gray_unrank2                   import gray_unrank2_test
  from i4_choose                      import i4_choose_test
  from i4_factorial                   import i4_factorial_test
  from i4_factorial_values            import i4_factorial_values_test
  from i4_fall                        import i4_fall_test
  from i4_gcd                         import i4_gcd_test
  from i4_huge                        import i4_huge_test
  from i4_log_10                      import i4_log_10_test
  from i4_modp                        import i4_modp_test
  from i4_partition_conj              import i4_partition_conj_test
  from i4_partition_count             import i4_partition_count_test
  from i4_partition_count2            import i4_partition_count2_test
  from i4_partition_count_values      import i4_partition_count_values_test
  from i4_partition_print             import i4_partition_print_test
  from i4_rise                        import i4_rise_test
  from i4_sign                        import i4_sign_test
  from i4_sqrt                        import i4_sqrt_test
  from i4_sqrt_cf                     import i4_sqrt_cf_test
  from i4_to_chinese                  import i4_to_chinese_test
  from i4_to_dvec                     import i4_to_dvec_test
  from i4_to_i4poly                   import i4_to_i4poly_test
  from i4_to_van_der_corput           import i4_to_van_der_corput_test
  from i4_uniform_ab                  import i4_uniform_ab_test
  from i4mat_mm                       import i4mat_mm_test
  from i4mat_print                    import i4mat_print_test
  from i4mat_print_some               import i4mat_print_some_test
  from i4mat_u1_inverse               import i4mat_u1_inverse_test
  from i4poly_add                     import i4poly_add_test
  from i4poly_degree                  import i4poly_degree_test
  from i4poly_dif                     import i4poly_dif_test
  from i4poly_mul                     import i4poly_mul_test
  from i4poly_print                   import i4poly_print_test
  from i4poly_to_i4                   import i4poly_to_i4_test
  from i4vec_ascends                  import i4vec_ascends_test
  from i4vec_descends                 import i4vec_descends_test
  from i4vec_frac                     import i4vec_frac_test
  from i4vec_index                    import i4vec_index_test
  from i4vec_indicator0               import i4vec_indicator0_test
  from i4vec_indicator1               import i4vec_indicator1_test
  from i4vec_max_index_last           import i4vec_max_index_last_test
  from i4vec_pairwise_prime           import i4vec_pairwise_prime_test
  from i4vec_print                    import i4vec_print_test
  from i4vec_product                  import i4vec_product_test
  from i4vec_reverse                  import i4vec_reverse_test
  from i4vec_sort_bubble_a            import i4vec_sort_bubble_a_test
  from i4vec_sort_heap_index_d        import i4vec_sort_heap_index_d_test
  from i4vec_sum                      import i4vec_sum_test
  from i4vec_transpose_print          import i4vec_transpose_print_test
  from i4vec_uniform_ab               import i4vec_uniform_ab_test
  from index_box_next_2d              import index_box_next_2d_test
  from index_box_next_3d              import index_box_next_3d_test
  from inverse_mod_n                  import inverse_mod_n_test
  from involute_enum                  import involute_enum_test
  from josephus                       import josephus_test
  from ksub_random                    import ksub_random_test
  from ksub_random2                   import ksub_random2_test
  from ksub_random3                   import ksub_random3_test
  from ksub_random4                   import ksub_random4_test
  from ksub_random5                   import ksub_random5_test
  from ksub_rank                      import ksub_rank_test
  from ksub_to_comp                   import ksub_to_comp_test
  from ksub_to_compnz                 import ksub_to_compnz_test
  from ksub_unrank                    import ksub_unrank_test
  from lvec_next                      import lvec_next_test
  from moebius_values                 import moebius_values_test
  from monomial_count                 import monomial_count_test
  from monomial_counts                import monomial_counts_test
  from multinomial_coef1              import multinomial_coef1_test
  from multinomial_coef2              import multinomial_coef2_test
  from multiperm_enum                 import multiperm_enum_test
  from nim_sum                        import nim_sum_test
  from padovan                        import padovan_test
  from pent_enum                      import pent_enum_test
  from perm_fixed_enum                import perm_fixed_enum_test
  from perm_print                     import perm_print_test
  from perm0_check                    import perm0_check_test
  from perm0_lex_next                 import perm0_lex_next_test
  from perm0_random                   import perm0_random_test
  from perm0_random2                  import perm0_random2_test
  from perm0_sign                     import perm0_sign_test
  from perm1_check                    import perm1_check_test
  from perrin                         import perrin_test
  from pord_check                     import pord_check_test
  from power_mod                      import power_mod_test
  from prime                          import prime_test
  from pythag_triple_next             import pythag_triple_next_test
  from r8_agm                         import r8_agm_test
  from r8_choose                      import r8_choose_test
  from r8_fall                        import r8_fall_test
  from r8_fall_values                 import r8_fall_values_test
  from r8_gamma                       import r8_gamma_test
  from r8_rise                        import r8_rise_test
  from r8_rise_values                 import r8_rise_values_test
  from r8_to_dec                      import r8_to_dec_test
  from r8_uniform_01                  import r8_uniform_01_test
  from r8_uniform_ab                  import r8_uniform_ab_test
  from r8mat_print                    import r8mat_print_test
  from r8mat_print_some               import r8mat_print_some_test
  from r8poly_add                     import r8poly_add_test
  from r8poly_degree                  import r8poly_degree_test
  from r8poly_dif                     import r8poly_dif_test
  from r8poly_div                     import r8poly_div_test
  from r8poly_mul                     import r8poly_mul_test
  from r8poly_print                   import r8poly_print_test
  from r8vec_frac                     import r8vec_frac_test
  from r8vec_indicator1               import r8vec_indicator1_test
  from r8vec_mirror_next              import r8vec_mirror_next_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 rat_to_cfrac                   import rat_to_cfrac_test
  from regro_next                     import regro_next_test
  from schroeder                      import schroeder_test
  from subset_gray_rank               import subset_gray_rank_test
  from subset_gray_unrank             import subset_gray_unrank_test
  from subset_lex_next                import subset_lex_next_test
  from subset_random                  import subset_random_test
  from subtriangle_next               import subtriangle_next_test
  from thue_binary_next               import thue_binary_next_test
  from thue_ternary_next              import thue_ternary_next_test
  from timestamp                      import timestamp_test
  from tuple_next                     import tuple_next_test
  from tuple_next2                    import tuple_next2_test
  from tuple_next_ge                  import tuple_next_ge_test
  from ubvec_add                      import ubvec_add_test
  from ubvec_print                    import ubvec_print_test
  from ubvec_to_ui4                   import ubvec_to_ui4_test
  from ubvec_xor                      import ubvec_xor_test
  from ui4_to_ubvec                   import ui4_to_ubvec_test
  from vec_colex_next                 import vec_colex_next_test
  from vec_colex_next2                import vec_colex_next2_test
  from vec_colex_next3                import vec_colex_next3_test
  from vec_gray_next                  import vec_gray_next_test
  from vec_gray_rank                  import vec_gray_rank_test
  from vec_gray_unrank                import vec_gray_unrank_test
  from vec_lex_next                   import vec_lex_next_test
  from vec_random                     import vec_random_test
  from vector_constrained_next        import vector_constrained_next_test
  from vector_constrained_next2       import vector_constrained_next2_test
  from vector_constrained_next3       import vector_constrained_next3_test
  from vector_next                    import vector_next_test
  from ytb_enum                       import ytb_enum_test
  from ytb_next                       import ytb_next_test
  from ytb_print                      import ytb_print_test
  from ytb_random                     import ytb_random_test

  print ''
  print 'SUBSET_TEST'
  print '  Python version:'
  print '  Test the SUBSET library.'

  agm_values_test ( )
  asm_enum_test ( )
  asm_triangle_test ( )

  bell_test ( )
  bell_values_test ( )

  catalan_test ( )
  catalan_row_next_test ( )
  catalan_values_test ( )

  cfrac_to_rat_test ( )

  change_greedy_test ( )
  change_next_test ( )

  chinese_check_test ( )
  chinese_to_i4_test ( )

  comb_next_test ( )
  comb_row_next_test ( )
  comb_unrank_test ( )

  comp_enum_test ( )
  comp_next_test ( )
  comp_next_grlex_test ( )
  comp_random_grlex_test ( )
  comp_rank_grlex_test ( )
  comp_to_ksub_test ( )
  comp_unrank_grlex_test ( )

  compnz_enum_test ( )
  compnz_next_test ( )
  compnz_random_test ( )
  compnz_to_ksub_test ( )

  congruence_test ( )

  count_pose_random_test ( )

  derange_enum_test ( )
  derange_enum2_test ( )
  derange_enum3_test ( )

  digraph_arc_print_test ( )

  dvec_add_test ( )
  dvec_complementx_test ( )
  dvec_mul_test ( )
  dvec_print_test ( )
  dvec_sub_test ( )
  dvec_to_i4_test ( )

  equiv_print_test ( )
  equiv_print2_test ( )
  equiv_random_test ( )

  euler_test ( )

  frobenius_number_order2_test ( )
  frobenius_number_order2_values_test ( )

  gamma_values_test ( )
  gamma_log_values_test ( )

  gray_rank2_test ( )
  gray_unrank2_test ( )

  i4_choose_test ( )
  i4_factorial_test ( )
  i4_factorial_values_test ( )
  i4_fall_test ( )
  i4_gcd_test ( )
  i4_huge_test ( )
  i4_log_10_test ( )
  i4_modp_test ( )
  i4_partition_conj_test ( )
  i4_partition_count_test ( )
  i4_partition_count2_test ( )
  i4_partition_count_values_test ( )
  i4_partition_print_test ( )
  i4_rise_test ( )
  i4_sign_test ( )
  i4_sqrt_test ( )
  i4_sqrt_cf_test ( )
  i4_to_chinese_test ( )
  i4_to_dvec_test ( )
  i4_to_i4poly_test ( )
  i4_to_van_der_corput_test ( )
  i4_uniform_ab_test ( )

  i4mat_mm_test
  i4mat_print_test ( )
  i4mat_print_some_test ( )
  i4mat_u1_inverse_test ( )

  i4poly_add_test ( )
  i4poly_degree_test ( )
  i4poly_dif_test ( )
  i4poly_mul_test ( )
  i4poly_print_test ( )
  i4poly_to_i4_test ( )

  i4vec_ascends_test ( )
  i4vec_descends_test ( )
  i4vec_frac_test ( )
  i4vec_index_test ( )
  i4vec_indicator0_test ( )
  i4vec_indicator1_test ( )
  i4vec_max_index_last_test ( )
  i4vec_pairwise_prime_test ( )
  i4vec_print_test ( )
  i4vec_product_test ( )
  i4vec_reverse_test ( )
  i4vec_sort_bubble_a_test ( )
  i4vec_sort_heap_index_d_test ( )
  i4vec_sum_test ( )
  i4vec_transpose_print_test ( )
  i4vec_uniform_ab_test ( )

  index_box_next_2d_test ( )
  index_box_next_3d_test ( )

  inverse_mod_n_test ( )

  involute_enum_test ( )

  josephus_test ( )

  ksub_random_test ( )
  ksub_random2_test ( )
  ksub_random3_test ( )
  ksub_random4_test ( )
  ksub_random5_test ( )
  ksub_rank_test ( )
  ksub_to_comp_test ( )
  ksub_to_compnz_test ( )
  ksub_unrank_test ( )

  lvec_next_test ( )

  moebius_values_test ( )

  monomial_count_test ( )
  monomial_counts_test ( )

  multinomial_coef1_test ( )
  multinomial_coef2_test ( )

  multiperm_enum_test ( )

  nim_sum_test ( )

  padovan_test ( )

  pent_enum_test ( )

  perm_fixed_enum_test ( )
  perm_print_test ( )

  perm0_check_test ( )
  perm0_lex_next_test ( )
  perm0_random_test ( )
  perm0_random2_test ( )
  perm0_sign_test ( )

  perm1_check_test ( )

  perrin_test ( )

  pord_check_test ( )

  power_mod_test ( )

  prime_test ( )

  pythag_triple_next_test ( )

  r8_agm_test ( )
  r8_choose_test ( )
  r8_fall_test ( )
  r8_fall_values_test ( )
  r8_gamma_test ( )
  r8_rise_test ( )
  r8_rise_values_test ( )
  r8_to_dec_test ( )
  r8_uniform_01_test ( )
  r8_uniform_ab_test ( )

  r8mat_print_test ( )
  r8mat_print_some_test ( )

  r8poly_add_test ( )
  r8poly_degree_test ( )
  r8poly_dif_test ( )
  r8poly_div_test ( )
  r8poly_mul_test ( )
  r8poly_print_test ( )

  r8vec_frac_test ( )
  r8vec_indicator1_test ( )
  r8vec_mirror_next_test ( )
  r8vec_print_test ( )
  r8vec_uniform_01_test ( )
  r8vec_uniform_ab_test ( )

  rat_to_cfrac_test ( )

  regro_next_test ( )

  schroeder_test ( )

  subset_gray_rank_test ( )
  subset_gray_unrank_test ( )
  subset_lex_next_test ( )
  subset_random_test ( )

  subtriangle_next_test ( )

  thue_binary_next_test ( )
  thue_ternary_next_test ( )

  tuple_next_test ( )
  tuple_next2_test ( )
  tuple_next_ge_test ( )

  timestamp_test ( )

  tuple_next_test ( )
  tuple_next2_test ( )

  ubvec_add_test ( )
  ubvec_print_test ( )
  ubvec_to_ui4_test ( )
  ubvec_xor_test ( )

  ui4_to_ubvec_test ( )

  vec_colex_next_test ( )
  vec_colex_next2_test ( )
  vec_colex_next3_test ( )

  vec_gray_next_test ( )
  vec_gray_rank_test ( )
  vec_gray_unrank_test ( )

  vec_lex_next_test ( )

  vec_random_test ( )

  vector_constrained_next_test ( )
  vector_constrained_next2_test ( )
  vector_constrained_next3_test ( )
  vector_next_test ( )

  ytb_enum_test ( )
  ytb_next_test ( )
  ytb_print_test ( )
  ytb_random_test ( )
#
#  Terminate.
#
  print ''
  print 'SUBSET_TEST:'
  print '  Normal end of execution.'
  print ''

  return
示例#2
0
def test_values_test ( ):

#*****************************************************************************80
#
## TEST_VALUES_TEST tests the TEST_VALUES library.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license. 
#
#  Modified:
#
#    22 February 2015
#
#  Author:
#
#    John Burkardt
#
  from abram0_values                          import abram0_values_test
  from abram1_values                          import abram1_values_test
  from abram2_values                          import abram2_values_test
  from agm_values                             import agm_values_test
  from airy_ai_values                         import airy_ai_values_test
  from airy_ai_int_values                     import airy_ai_int_values_test
  from airy_ai_prime_values                   import airy_ai_prime_values_test
  from airy_bi_values                         import airy_bi_values_test
  from airy_bi_int_values                     import airy_bi_int_values_test
  from airy_bi_prime_values                   import airy_bi_prime_values_test
  from airy_cai_values                        import airy_cai_values_test
  from airy_cbi_values                        import airy_cbi_values_test
  from airy_gi_values                         import airy_gi_values_test
  from arccos_values                          import arccos_values_test
  from arccosh_values                         import arccosh_values_test
  from arcsin_values                          import arcsin_values_test
  from arcsinh_values                         import arcsinh_values_test
  from arctan_values                          import arctan_values_test
  from arctan_int_values                      import arctan_int_values_test
  from arctan2_values                         import arctan2_values_test
  from arctanh_values                         import arctanh_values_test
  from bei0_values                            import bei0_values_test
  from bei1_values                            import bei1_values_test
  from bell_values                            import bell_values_test
  from ber0_values                            import ber0_values_test
  from ber1_values                            import ber1_values_test
  from bernoulli_number_values                import bernoulli_number_values_test
  from bernoulli_poly_values                  import bernoulli_poly_values_test
  from bernstein_poly_01_values               import bernstein_poly_01_values_test
  from bessel_i0_values                       import bessel_i0_values_test
  from bessel_i0_int_values                   import bessel_i0_int_values_test
  from bessel_i0_spherical_values             import bessel_i0_spherical_values_test
  from bessel_i1_values                       import bessel_i1_values_test
  from bessel_i1_spherical_values             import bessel_i1_spherical_values_test
  from bessel_in_values                       import bessel_in_values_test
  from bessel_ix_values                       import bessel_ix_values_test
  from bessel_j0_values                       import bessel_j0_values_test
  from bessel_j0_int_values                   import bessel_j0_int_values_test
  from bessel_j0_spherical_values             import bessel_j0_spherical_values_test
  from bessel_j1_values                       import bessel_j1_values_test
  from bessel_j1_spherical_values             import bessel_j1_spherical_values_test
  from bessel_jn_values                       import bessel_jn_values_test
  from bessel_jx_values                       import bessel_jx_values_test
  from bessel_k0_values                       import bessel_k0_values_test
  from bessel_k0_int_values                   import bessel_k0_int_values_test
  from bessel_k1_values                       import bessel_k1_values_test
  from bessel_kn_values                       import bessel_kn_values_test
  from bessel_kx_values                       import bessel_kx_values_test
  from bessel_y0_values                       import bessel_y0_values_test
  from bessel_y0_int_values                   import bessel_y0_int_values_test
  from bessel_y0_spherical_values             import bessel_y0_spherical_values_test
  from bessel_y1_values                       import bessel_y1_values_test
  from bessel_y1_spherical_values             import bessel_y1_spherical_values_test
  from bessel_yn_values                       import bessel_yn_values_test
  from bessel_yx_values                       import bessel_yx_values_test
  from beta_values                            import beta_values_test
  from beta_cdf_values                        import beta_cdf_values_test
  from beta_inc_values                        import beta_inc_values_test
  from beta_log_values                        import beta_log_values_test
  from beta_noncentral_cdf_values             import beta_noncentral_cdf_values_test
  from binomial_cdf_values                    import binomial_cdf_values_test
  from binomial_values                        import binomial_values_test
  from bivariate_normal_cdf_values            import bivariate_normal_cdf_values_test
  from catalan_values                         import catalan_values_test
  from cauchy_cdf_values                      import cauchy_cdf_values_test
  from cbrt_values                            import cbrt_values_test
  from cheby_t_poly_values                    import cheby_t_poly_values_test
  from cheby_u_poly_values                    import cheby_u_poly_values_test
  from cheby_v_poly_values                    import cheby_v_poly_values_test
  from cheby_w_poly_values                    import cheby_w_poly_values_test
  from chi_values                             import chi_values_test
  from chi_square_cdf_values                  import chi_square_cdf_values_test
  from chi_square_noncentral_cdf_values       import chi_square_noncentral_cdf_values_test
  from ci_values                              import ci_values_test
  from cin_values                             import cin_values_test
  from cinh_values                            import cinh_values_test
  from clausen_values                         import clausen_values_test
  from clebsch_gordan_values                  import clebsch_gordan_values_test
  from collatz_count_values                   import collatz_count_values_test
  from cos_values                             import cos_values_test
  from cos_degree_values                      import cos_degree_values_test
  from cos_power_int_values                   import cos_power_int_values_test
  from cosh_values                            import cosh_values_test
  from cot_values                             import cot_values_test
  from cp_values                              import cp_values_test
  from dawson_values                          import dawson_values_test
  from debye1_values                          import debye1_values_test
  from debye2_values                          import debye2_values_test
  from debye3_values                          import debye3_values_test
  from debye4_values                          import debye4_values_test
  from dedekind_sum_values                    import dedekind_sum_values_test
  from dielectric_values                      import dielectric_values_test
  from dilogarithm_values                     import dilogarithm_values_test
  from e1_values                              import e1_values_test
  from ei_values                              import ei_values_test
  from elliptic_ea_values                     import elliptic_ea_values_test
  from elliptic_em_values                     import elliptic_em_values_test
  from elliptic_ka_values                     import elliptic_ka_values_test
  from elliptic_km_values                     import elliptic_km_values_test
  from erf_values                             import erf_values_test
  from erfc_values                            import erfc_values_test
  from euler_number_values                    import euler_number_values_test
  from euler_poly_values                      import euler_poly_values_test
  from exp_values                             import exp_values_test
  from exp3_int_values                        import exp3_int_values_test
  from exponential_cdf_values                 import exponential_cdf_values_test
  from extreme_values_cdf_values              import extreme_values_cdf_values_test
  from f_cdf_values                           import f_cdf_values_test
  from f_noncentral_cdf_values                import f_noncentral_cdf_values_test
  from fresnel_cos_values                     import fresnel_cos_values_test
  from fresnel_sin_values                     import fresnel_sin_values_test
  from frobenius_number_data_values           import frobenius_number_data_values_test
  from frobenius_number_order_values          import frobenius_number_order_values_test
  from frobenius_number_order2_values         import frobenius_number_order2_values_test
  from gamma_values                           import gamma_values_test
  from gamma_inc_values                       import gamma_inc_values_test
  from gamma_inc_p_values                     import gamma_inc_p_values_test
  from gamma_inc_q_values                     import gamma_inc_q_values_test
  from gamma_inc_tricomi_values               import gamma_inc_tricomi_values_test
  from gamma_log_values                       import gamma_log_values_test
  from gegenbauer_poly_values                 import gegenbauer_poly_values_test
  from geometric_cdf_values                   import geometric_cdf_values_test
  from goodwin_values                         import goodwin_values_test
  from gud_values                             import gud_values_test
  from hermite_function_values                import hermite_function_values_test
  from hermite_poly_phys_values               import hermite_poly_phys_values_test
  from hermite_poly_prob_values               import hermite_poly_prob_values_test
  from hyper_1f1_values                       import hyper_1f1_values_test
  from hyper_2f1_values                       import hyper_2f1_values_test
  from hypergeometric_cdf_values              import hypergeometric_cdf_values_test
  from hypergeometric_pdf_values              import hypergeometric_pdf_values_test
  from hypergeometric_u_values                import hypergeometric_u_values_test
  from i0ml0_values                           import i0ml0_values_test
  from i1ml1_values                           import i1ml1_values_test
  from i4_factorial_values                    import i4_factorial_values_test
  from i4_factorial2_values                   import i4_factorial2_values_test
  from i4_fall_values                         import i4_fall_values_test
  from i4_rise_values                         import i4_rise_values_test
  from int_values                             import int_values_test
  from jacobi_cn_values                       import jacobi_cn_values_test
  from jacobi_dn_values                       import jacobi_dn_values_test
  from jacobi_poly_values                     import jacobi_poly_values_test
  from jacobi_sn_values                       import jacobi_sn_values_test
  from jed_ce_values                          import jed_ce_values_test
  from jed_mjd_values                         import jed_mjd_values_test
  from jed_rd_values                          import jed_rd_values_test
  from jed_weekday_values                     import jed_weekday_values_test
  from kei0_values                            import kei0_values_test
  from kei1_values                            import kei1_values_test
  from ker0_values                            import ker0_values_test
  from ker1_values                            import ker1_values_test
  from laguerre_associated_values             import laguerre_associated_values_test
  from laguerre_general_values                import laguerre_general_values_test
  from laguerre_polynomial_values             import laguerre_polynomial_values_test
  from lambert_w_values                       import lambert_w_values_test
  from laplace_cdf_values                     import laplace_cdf_values_test
  from legendre_associated_values             import legendre_associated_values_test
  from legendre_associated_normalized_values  import legendre_associated_normalized_values_test
  from legendre_associated_normalized_sphere_values  import legendre_associated_normalized_sphere_values_test
  from legendre_function_q_values             import legendre_function_q_values_test
  from legendre_poly_values                   import legendre_poly_values_test
  from lerch_values                           import lerch_values_test
  from lobachevsky_values                     import lobachevsky_values_test
  from lobatto_polynomial_values              import lobatto_polynomial_values_test
  from lobatto_polynomial_derivatives         import lobatto_polynomial_derivatives_test
  from log_values                             import log_values_test
  from log_normal_cdf_values                  import log_normal_cdf_values_test
  from log_series_cdf_values                  import log_series_cdf_values_test
  from log10_values                           import log10_values_test
  from logarithmic_integral_values            import logarithmic_integral_values_test
  from logistic_cdf_values                    import logistic_cdf_values_test
  from mertens_values                         import mertens_values_test
  from moebius_values                         import moebius_values_test
  from negative_binomial_cdf_values           import negative_binomial_cdf_values_test
  from nine_j_values                          import nine_j_values_test
  from normal_01_cdf_values                   import normal_01_cdf_values_test
  from normal_cdf_values                      import normal_cdf_values_test
  from omega_values                           import omega_values_test
  from owen_values                            import owen_values_test
  from partition_count_values                 import partition_count_values_test
  from partition_distinct_count_values        import partition_distinct_count_values_test
  from phi_values                             import phi_values_test
  from pi_values                              import pi_values_test
  from poisson_cdf_values                     import poisson_cdf_values_test
  from polylogarithm_values                   import polylogarithm_values_test
  from prandtl_values                         import prandtl_values_test
  from prime_values                           import prime_values_test
  from psat_values                            import psat_values_test
  from psi_values                             import psi_values_test
  from r8_factorial_values                    import r8_factorial_values_test
  from r8_factorial_log_values                import r8_factorial_log_values_test
  from r8_factorial2_values                   import r8_factorial2_values_test
  from r8_fall_values                         import r8_fall_values_test
  from r8_rise_values                         import r8_rise_values_test
  from rayleigh_cdf_values                    import rayleigh_cdf_values_test
  from secvir_values                          import secvir_values_test
  from shi_values                             import shi_values_test
  from si_values                              import si_values_test
  from sigma_values                           import sigma_values_test
  from sin_values                             import sin_values_test
  from sin_degree_values                      import sin_degree_values_test
  from sin_power_int_values                   import sin_power_int_values_test
  from sinh_values                            import sinh_values_test
  from six_j_values                           import six_j_values_test
  from sound_values                           import sound_values_test
  from sphere_unit_area_values                import sphere_unit_area_values_test
  from sphere_unit_volume_values              import sphere_unit_volume_values_test
  from spherical_harmonic_values              import spherical_harmonic_values_test
  from sqrt_values                            import sqrt_values_test
  from stirling1_values                       import stirling1_values_test
  from stirling2_values                       import stirling2_values_test
  from stromgen_values                        import stromgen_values_test
  from struve_h0_values                       import struve_h0_values_test
  from struve_h1_values                       import struve_h1_values_test
  from struve_l0_values                       import struve_l0_values_test
  from struve_l1_values                       import struve_l1_values_test
  from student_cdf_values                     import student_cdf_values_test
  from student_noncentral_cdf_values          import student_noncentral_cdf_values_test
  from subfactorial_values                    import subfactorial_values_test
  from surten_values                          import surten_values_test
  from synch1_values                          import synch1_values_test
  from synch2_values                          import synch2_values_test
  from tan_values                             import tan_values_test
  from tanh_values                            import tanh_values_test
  from tau_values                             import tau_values_test
  from thercon_values                         import thercon_values_test
  from three_j_values                         import three_j_values_test
  from tran02_values                          import tran02_values_test
  from tran03_values                          import tran03_values_test
  from tran04_values                          import tran04_values_test
  from tran05_values                          import tran05_values_test
  from tran06_values                          import tran06_values_test
  from tran07_values                          import tran07_values_test
  from tran08_values                          import tran08_values_test
  from tran09_values                          import tran09_values_test
  from trigamma_values                        import trigamma_values_test
  from truncated_normal_ab_cdf_values         import truncated_normal_ab_cdf_values_test
  from truncated_normal_ab_pdf_values         import truncated_normal_ab_pdf_values_test
  from truncated_normal_a_cdf_values          import truncated_normal_a_cdf_values_test
  from truncated_normal_a_pdf_values          import truncated_normal_a_pdf_values_test
  from truncated_normal_b_cdf_values          import truncated_normal_b_cdf_values_test
  from truncated_normal_b_pdf_values          import truncated_normal_b_pdf_values_test
  from tsat_values                            import tsat_values_test
  from van_der_corput_values                  import van_der_corput_values_test
  from viscosity_values                       import viscosity_values_test
  from von_mises_cdf_values                   import von_mises_cdf_values_test
  from weekday_values                         import weekday_values_test
  from weibull_cdf_values                     import weibull_cdf_values_test
  from zeta_values                            import zeta_values_test

  print ''
  print 'TEST_VALUES_TEST'
  print '  Python version:'
  print '  Test the TEST_VALUES library.'

  abram0_values_test ( )
  abram1_values_test ( )
  abram2_values_test ( )
  agm_values_test ( )
  airy_ai_values_test ( )
  airy_ai_int_values_test ( )
  airy_ai_prime_values_test ( )
  airy_bi_values_test ( )
  airy_bi_int_values_test ( )
  airy_bi_prime_values_test ( )
  airy_cai_values_test ( )
  airy_cbi_values_test ( )
  airy_gi_values_test ( )
  arccos_values_test ( )
  arccosh_values_test ( )
  arcsin_values_test ( )
  arcsinh_values_test ( )
  arctan_values_test ( )
  arctan_int_values_test ( )
  arctan2_values_test ( )
  arctanh_values_test ( )
  bei0_values_test ( )
  bei1_values_test ( )
  bell_values_test ( )
  ber0_values_test ( )
  ber1_values_test ( )
  bernoulli_number_values_test ( )
  bernoulli_poly_values_test ( )
  bernstein_poly_01_values_test ( )
  bessel_i0_values_test ( )
  bessel_i0_int_values_test ( )
  bessel_i0_spherical_values_test ( )
  bessel_i1_values_test ( )
  bessel_i1_spherical_values_test ( )
  bessel_in_values_test ( )
  bessel_ix_values_test ( )
  bessel_j0_values_test ( )
  bessel_j0_int_values_test ( )
  bessel_j0_spherical_values_test ( )
  bessel_j1_values_test ( )
  bessel_j1_spherical_values_test ( )
  bessel_jn_values_test ( )
  bessel_jx_values_test ( )
  bessel_k0_values_test ( )
  bessel_k0_int_values_test ( )
  bessel_k1_values_test ( )
  bessel_kn_values_test ( )
  bessel_kx_values_test ( )
  bessel_y0_values_test ( )
  bessel_y0_int_values_test ( )
  bessel_y0_spherical_values_test ( )
  bessel_y1_values_test ( )
  bessel_y1_spherical_values_test ( )
  bessel_yn_values_test ( )
  bessel_yx_values_test ( )
  beta_values_test ( )
  beta_cdf_values_test ( )
  beta_inc_values_test ( )
  beta_log_values_test ( )
  beta_noncentral_cdf_values_test ( )
  binomial_values_test ( )
  binomial_cdf_values_test ( )
  bivariate_normal_cdf_values_test ( )
  catalan_values_test ( )
  cauchy_cdf_values_test ( )
  cbrt_values_test ( )
  cheby_t_poly_values_test ( )
  cheby_u_poly_values_test ( )
  cheby_v_poly_values_test ( )
  cheby_w_poly_values_test ( )
  chi_values_test ( )
  chi_square_cdf_values_test ( )
  chi_square_noncentral_cdf_values_test ( )
  ci_values_test ( )
  cin_values_test ( )
  cinh_values_test ( )
  clausen_values_test ( )
  clebsch_gordan_values_test ( )
  collatz_count_values_test ( )
  cos_values_test ( )
  cos_degree_values_test ( )
  cos_power_int_values_test ( )
  cosh_values_test ( )
  cot_values_test ( )
  cp_values_test ( )
  dawson_values_test ( )
  debye1_values_test ( )
  debye2_values_test ( )
  debye3_values_test ( )
  debye4_values_test ( )
  dedekind_sum_values_test ( )
  dielectric_values_test ( )
  dilogarithm_values_test ( )
  e1_values_test ( )
  elliptic_ea_values_test ( )
  elliptic_em_values_test ( )
  elliptic_ka_values_test ( )
  elliptic_km_values_test ( )
  erf_values_test ( )
  erfc_values_test ( )
  euler_number_values_test ( )
  euler_poly_values_test ( )
  exp_values_test ( )
  exp3_int_values_test ( )
  exponential_cdf_values_test ( )
  extreme_values_cdf_values_test ( )
  f_cdf_values_test ( )
  f_noncentral_cdf_values_test ( )
  fresnel_cos_values_test ( )
  fresnel_sin_values_test ( )
  frobenius_number_data_values_test ( )
  frobenius_number_order_values_test ( )
  frobenius_number_order2_values_test ( )
  gamma_values_test ( )
  gamma_inc_values_test ( )
  gamma_inc_p_values_test ( )
  gamma_inc_q_values_test ( )
  gamma_log_values_test ( )
  gegenbauer_poly_values_test ( )
  geometric_cdf_values_test ( )
  goodwin_values_test ( )
  gud_values_test ( )
  hermite_function_values_test ( )
  hermite_poly_phys_values_test ( )
  hermite_poly_prob_values_test ( )
  hyper_1f1_values_test ( )
  hyper_2f1_values_test ( )
  hypergeometric_cdf_values_test ( )
  hypergeometric_pdf_values_test ( )
  hypergeometric_u_values_test ( )
  i0ml0_values_test ( )
  i1ml1_values_test ( )
  i4_factorial_values_test ( )
  i4_factorial2_values_test ( )
  i4_fall_values_test ( )
  i4_rise_values_test ( )
  int_values_test ( )
  jacobi_cn_values_test ( )
  jacobi_dn_values_test ( )
  jacobi_poly_values_test ( )
  jacobi_sn_values_test ( )
  jed_ce_values_test ( )
  jed_mjd_values_test ( )
  jed_rd_values_test ( )
  jed_weekday_values_test ( )
  kei0_values_test ( )
  kei1_values_test ( )
  ker0_values_test ( )
  ker1_values_test ( )
  laguerre_associated_values_test ( )
  laguerre_general_values_test ( )
  laguerre_polynomial_values_test ( )
  lambert_w_values_test ( )
  laplace_cdf_values_test ( )
  legendre_associated_values_test ( )
  legendre_associated_normalized_values_test ( )
  legendre_associated_normalized_sphere_values_test ( )
  legendre_function_q_values_test ( )
  legendre_poly_values_test ( )
  lerch_values_test ( )
  lobachevsky_values_test ( )
  lobatto_polynomial_values_test ( )
  lobatto_polynomial_derivatives_test ( )
  log_values_test ( )
  log_normal_cdf_values_test ( )
  log_series_cdf_values_test ( )
  log10_values_test ( )
  logarithmic_integral_values_test ( )
  logistic_cdf_values_test ( )
  mertens_values_test ( )
  moebius_values_test ( )
  negative_binomial_cdf_values_test ( )
  nine_j_values_test ( )
  normal_01_cdf_values_test ( )
  normal_cdf_values_test ( )
  omega_values_test ( )
  owen_values_test ( )
  partition_count_values_test ( )
  partition_distinct_count_values_test ( )
  phi_values_test ( )
  pi_values_test ( )
  poisson_cdf_values_test ( )
  polylogarithm_values_test ( )
  prandtl_values_test ( )
  prime_values_test ( )
  psat_values_test ( )
  psi_values_test ( )
  r8_factorial_values_test ( )
  r8_factorial_log_values_test ( )
  r8_factorial2_values_test ( )
  r8_fall_values_test ( )
  r8_rise_values_test ( )
  rayleigh_cdf_values_test ( )
  secvir_values_test ( )
  shi_values_test ( )
  si_values_test ( )
  sigma_values_test ( )
  sin_values_test ( )
  sin_degree_values_test ( )
  sin_power_int_values_test ( )
  sinh_values_test ( )
  six_j_values_test ( )
  sound_values_test ( )
  sphere_unit_area_values_test ( )
  sphere_unit_volume_values_test ( )
  spherical_harmonic_values_test ( )
  sqrt_values_test ( )
  stirling1_values_test ( )
  stirling2_values_test ( )
  stromgen_values_test ( )
  struve_h0_values_test ( )
  struve_h1_values_test ( )
  struve_l0_values_test ( )
  struve_l1_values_test ( )
  student_cdf_values_test ( )
  student_noncentral_cdf_values_test ( )
  subfactorial_values_test ( )
  surten_values_test ( )
  synch1_values_test ( )
  synch2_values_test ( )
  tan_values_test ( )
  tanh_values_test ( )
  tau_values_test ( )
  thercon_values_test ( )
  three_j_values_test ( )
  tran02_values_test ( )
  tran03_values_test ( )
  tran04_values_test ( )
  tran05_values_test ( )
  tran06_values_test ( )
  tran07_values_test ( )
  tran08_values_test ( )
  tran09_values_test ( )
  trigamma_values_test ( )
  truncated_normal_ab_cdf_values_test ( )
  truncated_normal_ab_pdf_values_test ( )
  truncated_normal_a_cdf_values_test ( )
  truncated_normal_a_pdf_values_test ( )
  truncated_normal_b_cdf_values_test ( )
  truncated_normal_b_pdf_values_test ( )
  tsat_values_test ( )
  van_der_corput_values_test ( )
  viscosity_values_test
  von_mises_cdf_values_test
  weekday_values_test
  weibull_cdf_values_test
  zeta_values_test
#
#  Terminate.
#
  print ''
  print 'TEST_VALUES_TEST:'
  print '  Normal end of execution.'
示例#3
0
def subset_test():

    #*****************************************************************************80
    #
    ## SUBSET_TEST tests the SUBSET library.
    #
    #  Licensing:
    #
    #    This code is distributed under the GNU LGPL license.
    #
    #  Modified:
    #
    #    31 May 2015
    #
    #  Author:
    #
    #    John Burkardt
    #
    from agm_values import agm_values_test
    from asm_enum import asm_enum_test
    from asm_triangle import asm_triangle_test
    from bell import bell_test
    from bell_values import bell_values_test
    from catalan import catalan_test
    from catalan_row_next import catalan_row_next_test
    from catalan_values import catalan_values_test
    from cfrac_to_rat import cfrac_to_rat_test
    from change_greedy import change_greedy_test
    from change_next import change_next_test
    from chinese_check import chinese_check_test
    from chinese_to_i4 import chinese_to_i4_test
    from comb_next import comb_next_test
    from comb_row_next import comb_row_next_test
    from comb_unrank import comb_unrank_test
    from comp_enum import comp_enum_test
    from comp_next import comp_next_test
    from comp_next_grlex import comp_next_grlex_test
    from comp_random_grlex import comp_random_grlex_test
    from comp_rank_grlex import comp_rank_grlex_test
    from comp_to_ksub import comp_to_ksub_test
    from comp_unrank_grlex import comp_unrank_grlex_test
    from compnz_enum import compnz_enum_test
    from compnz_next import compnz_next_test
    from compnz_to_ksub import compnz_to_ksub_test
    from compnz_random import compnz_random_test
    from congruence import congruence_test
    from count_pose_random import count_pose_random_test
    from derange_enum import derange_enum_test
    from derange_enum2 import derange_enum2_test
    from derange_enum3 import derange_enum3_test
    from digraph_arc_print import digraph_arc_print_test
    from dvec_add import dvec_add_test
    from dvec_complementx import dvec_complementx_test
    from dvec_mul import dvec_mul_test
    from dvec_print import dvec_print_test
    from dvec_sub import dvec_sub_test
    from dvec_to_i4 import dvec_to_i4_test
    from equiv_print import equiv_print_test
    from equiv_print2 import equiv_print2_test
    from equiv_random import equiv_random_test
    from euler import euler_test
    from frobenius_number_order2 import frobenius_number_order2_test
    from frobenius_number_order2_values import frobenius_number_order2_values_test
    from gamma_values import gamma_values_test
    from gamma_log_values import gamma_log_values_test
    from gray_rank2 import gray_rank2_test
    from gray_unrank2 import gray_unrank2_test
    from i4_choose import i4_choose_test
    from i4_factorial import i4_factorial_test
    from i4_factorial_values import i4_factorial_values_test
    from i4_fall import i4_fall_test
    from i4_gcd import i4_gcd_test
    from i4_huge import i4_huge_test
    from i4_log_10 import i4_log_10_test
    from i4_modp import i4_modp_test
    from i4_partition_conj import i4_partition_conj_test
    from i4_partition_count import i4_partition_count_test
    from i4_partition_count2 import i4_partition_count2_test
    from i4_partition_count_values import i4_partition_count_values_test
    from i4_partition_print import i4_partition_print_test
    from i4_rise import i4_rise_test
    from i4_sign import i4_sign_test
    from i4_sqrt import i4_sqrt_test
    from i4_sqrt_cf import i4_sqrt_cf_test
    from i4_to_chinese import i4_to_chinese_test
    from i4_to_dvec import i4_to_dvec_test
    from i4_to_i4poly import i4_to_i4poly_test
    from i4_to_van_der_corput import i4_to_van_der_corput_test
    from i4_uniform_ab import i4_uniform_ab_test
    from i4mat_mm import i4mat_mm_test
    from i4mat_print import i4mat_print_test
    from i4mat_print_some import i4mat_print_some_test
    from i4mat_u1_inverse import i4mat_u1_inverse_test
    from i4poly_add import i4poly_add_test
    from i4poly_degree import i4poly_degree_test
    from i4poly_dif import i4poly_dif_test
    from i4poly_mul import i4poly_mul_test
    from i4poly_print import i4poly_print_test
    from i4poly_to_i4 import i4poly_to_i4_test
    from i4vec_ascends import i4vec_ascends_test
    from i4vec_descends import i4vec_descends_test
    from i4vec_frac import i4vec_frac_test
    from i4vec_index import i4vec_index_test
    from i4vec_indicator0 import i4vec_indicator0_test
    from i4vec_indicator1 import i4vec_indicator1_test
    from i4vec_max_index_last import i4vec_max_index_last_test
    from i4vec_pairwise_prime import i4vec_pairwise_prime_test
    from i4vec_print import i4vec_print_test
    from i4vec_product import i4vec_product_test
    from i4vec_reverse import i4vec_reverse_test
    from i4vec_sort_bubble_a import i4vec_sort_bubble_a_test
    from i4vec_sort_heap_index_d import i4vec_sort_heap_index_d_test
    from i4vec_sum import i4vec_sum_test
    from i4vec_transpose_print import i4vec_transpose_print_test
    from i4vec_uniform_ab import i4vec_uniform_ab_test
    from index_box_next_2d import index_box_next_2d_test
    from index_box_next_3d import index_box_next_3d_test
    from inverse_mod_n import inverse_mod_n_test
    from involute_enum import involute_enum_test
    from josephus import josephus_test
    from ksub_random import ksub_random_test
    from ksub_random2 import ksub_random2_test
    from ksub_random3 import ksub_random3_test
    from ksub_random4 import ksub_random4_test
    from ksub_random5 import ksub_random5_test
    from ksub_rank import ksub_rank_test
    from ksub_to_comp import ksub_to_comp_test
    from ksub_to_compnz import ksub_to_compnz_test
    from ksub_unrank import ksub_unrank_test
    from lvec_next import lvec_next_test
    from moebius_values import moebius_values_test
    from monomial_count import monomial_count_test
    from monomial_counts import monomial_counts_test
    from multinomial_coef1 import multinomial_coef1_test
    from multinomial_coef2 import multinomial_coef2_test
    from multiperm_enum import multiperm_enum_test
    from nim_sum import nim_sum_test
    from padovan import padovan_test
    from pent_enum import pent_enum_test
    from perm_fixed_enum import perm_fixed_enum_test
    from perm_print import perm_print_test
    from perm0_check import perm0_check_test
    from perm0_lex_next import perm0_lex_next_test
    from perm0_random import perm0_random_test
    from perm0_random2 import perm0_random2_test
    from perm0_sign import perm0_sign_test
    from perm1_check import perm1_check_test
    from perrin import perrin_test
    from pord_check import pord_check_test
    from power_mod import power_mod_test
    from prime import prime_test
    from pythag_triple_next import pythag_triple_next_test
    from r8_agm import r8_agm_test
    from r8_choose import r8_choose_test
    from r8_fall import r8_fall_test
    from r8_fall_values import r8_fall_values_test
    from r8_gamma import r8_gamma_test
    from r8_rise import r8_rise_test
    from r8_rise_values import r8_rise_values_test
    from r8_to_dec import r8_to_dec_test
    from r8_uniform_01 import r8_uniform_01_test
    from r8_uniform_ab import r8_uniform_ab_test
    from r8mat_print import r8mat_print_test
    from r8mat_print_some import r8mat_print_some_test
    from r8poly_add import r8poly_add_test
    from r8poly_degree import r8poly_degree_test
    from r8poly_dif import r8poly_dif_test
    from r8poly_div import r8poly_div_test
    from r8poly_mul import r8poly_mul_test
    from r8poly_print import r8poly_print_test
    from r8vec_frac import r8vec_frac_test
    from r8vec_indicator1 import r8vec_indicator1_test
    from r8vec_mirror_next import r8vec_mirror_next_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 rat_to_cfrac import rat_to_cfrac_test
    from regro_next import regro_next_test
    from schroeder import schroeder_test
    from subset_gray_rank import subset_gray_rank_test
    from subset_gray_unrank import subset_gray_unrank_test
    from subset_lex_next import subset_lex_next_test
    from subset_random import subset_random_test
    from subtriangle_next import subtriangle_next_test
    from thue_binary_next import thue_binary_next_test
    from thue_ternary_next import thue_ternary_next_test
    from timestamp import timestamp_test
    from tuple_next import tuple_next_test
    from tuple_next2 import tuple_next2_test
    from tuple_next_ge import tuple_next_ge_test
    from ubvec_add import ubvec_add_test
    from ubvec_print import ubvec_print_test
    from ubvec_to_ui4 import ubvec_to_ui4_test
    from ubvec_xor import ubvec_xor_test
    from ui4_to_ubvec import ui4_to_ubvec_test
    from vec_colex_next import vec_colex_next_test
    from vec_colex_next2 import vec_colex_next2_test
    from vec_colex_next3 import vec_colex_next3_test
    from vec_gray_next import vec_gray_next_test
    from vec_gray_rank import vec_gray_rank_test
    from vec_gray_unrank import vec_gray_unrank_test
    from vec_lex_next import vec_lex_next_test
    from vec_random import vec_random_test
    from vector_constrained_next import vector_constrained_next_test
    from vector_constrained_next2 import vector_constrained_next2_test
    from vector_constrained_next3 import vector_constrained_next3_test
    from vector_next import vector_next_test
    from ytb_enum import ytb_enum_test
    from ytb_next import ytb_next_test
    from ytb_print import ytb_print_test
    from ytb_random import ytb_random_test

    print ''
    print 'SUBSET_TEST'
    print '  Python version:'
    print '  Test the SUBSET library.'

    agm_values_test()
    asm_enum_test()
    asm_triangle_test()

    bell_test()
    bell_values_test()

    catalan_test()
    catalan_row_next_test()
    catalan_values_test()

    cfrac_to_rat_test()

    change_greedy_test()
    change_next_test()

    chinese_check_test()
    chinese_to_i4_test()

    comb_next_test()
    comb_row_next_test()
    comb_unrank_test()

    comp_enum_test()
    comp_next_test()
    comp_next_grlex_test()
    comp_random_grlex_test()
    comp_rank_grlex_test()
    comp_to_ksub_test()
    comp_unrank_grlex_test()

    compnz_enum_test()
    compnz_next_test()
    compnz_random_test()
    compnz_to_ksub_test()

    congruence_test()

    count_pose_random_test()

    derange_enum_test()
    derange_enum2_test()
    derange_enum3_test()

    digraph_arc_print_test()

    dvec_add_test()
    dvec_complementx_test()
    dvec_mul_test()
    dvec_print_test()
    dvec_sub_test()
    dvec_to_i4_test()

    equiv_print_test()
    equiv_print2_test()
    equiv_random_test()

    euler_test()

    frobenius_number_order2_test()
    frobenius_number_order2_values_test()

    gamma_values_test()
    gamma_log_values_test()

    gray_rank2_test()
    gray_unrank2_test()

    i4_choose_test()
    i4_factorial_test()
    i4_factorial_values_test()
    i4_fall_test()
    i4_gcd_test()
    i4_huge_test()
    i4_log_10_test()
    i4_modp_test()
    i4_partition_conj_test()
    i4_partition_count_test()
    i4_partition_count2_test()
    i4_partition_count_values_test()
    i4_partition_print_test()
    i4_rise_test()
    i4_sign_test()
    i4_sqrt_test()
    i4_sqrt_cf_test()
    i4_to_chinese_test()
    i4_to_dvec_test()
    i4_to_i4poly_test()
    i4_to_van_der_corput_test()
    i4_uniform_ab_test()

    i4mat_mm_test
    i4mat_print_test()
    i4mat_print_some_test()
    i4mat_u1_inverse_test()

    i4poly_add_test()
    i4poly_degree_test()
    i4poly_dif_test()
    i4poly_mul_test()
    i4poly_print_test()
    i4poly_to_i4_test()

    i4vec_ascends_test()
    i4vec_descends_test()
    i4vec_frac_test()
    i4vec_index_test()
    i4vec_indicator0_test()
    i4vec_indicator1_test()
    i4vec_max_index_last_test()
    i4vec_pairwise_prime_test()
    i4vec_print_test()
    i4vec_product_test()
    i4vec_reverse_test()
    i4vec_sort_bubble_a_test()
    i4vec_sort_heap_index_d_test()
    i4vec_sum_test()
    i4vec_transpose_print_test()
    i4vec_uniform_ab_test()

    index_box_next_2d_test()
    index_box_next_3d_test()

    inverse_mod_n_test()

    involute_enum_test()

    josephus_test()

    ksub_random_test()
    ksub_random2_test()
    ksub_random3_test()
    ksub_random4_test()
    ksub_random5_test()
    ksub_rank_test()
    ksub_to_comp_test()
    ksub_to_compnz_test()
    ksub_unrank_test()

    lvec_next_test()

    moebius_values_test()

    monomial_count_test()
    monomial_counts_test()

    multinomial_coef1_test()
    multinomial_coef2_test()

    multiperm_enum_test()

    nim_sum_test()

    padovan_test()

    pent_enum_test()

    perm_fixed_enum_test()
    perm_print_test()

    perm0_check_test()
    perm0_lex_next_test()
    perm0_random_test()
    perm0_random2_test()
    perm0_sign_test()

    perm1_check_test()

    perrin_test()

    pord_check_test()

    power_mod_test()

    prime_test()

    pythag_triple_next_test()

    r8_agm_test()
    r8_choose_test()
    r8_fall_test()
    r8_fall_values_test()
    r8_gamma_test()
    r8_rise_test()
    r8_rise_values_test()
    r8_to_dec_test()
    r8_uniform_01_test()
    r8_uniform_ab_test()

    r8mat_print_test()
    r8mat_print_some_test()

    r8poly_add_test()
    r8poly_degree_test()
    r8poly_dif_test()
    r8poly_div_test()
    r8poly_mul_test()
    r8poly_print_test()

    r8vec_frac_test()
    r8vec_indicator1_test()
    r8vec_mirror_next_test()
    r8vec_print_test()
    r8vec_uniform_01_test()
    r8vec_uniform_ab_test()

    rat_to_cfrac_test()

    regro_next_test()

    schroeder_test()

    subset_gray_rank_test()
    subset_gray_unrank_test()
    subset_lex_next_test()
    subset_random_test()

    subtriangle_next_test()

    thue_binary_next_test()
    thue_ternary_next_test()

    tuple_next_test()
    tuple_next2_test()
    tuple_next_ge_test()

    timestamp_test()

    tuple_next_test()
    tuple_next2_test()

    ubvec_add_test()
    ubvec_print_test()
    ubvec_to_ui4_test()
    ubvec_xor_test()

    ui4_to_ubvec_test()

    vec_colex_next_test()
    vec_colex_next2_test()
    vec_colex_next3_test()

    vec_gray_next_test()
    vec_gray_rank_test()
    vec_gray_unrank_test()

    vec_lex_next_test()

    vec_random_test()

    vector_constrained_next_test()
    vector_constrained_next2_test()
    vector_constrained_next3_test()
    vector_next_test()

    ytb_enum_test()
    ytb_next_test()
    ytb_print_test()
    ytb_random_test()
    #
    #  Terminate.
    #
    print ''
    print 'SUBSET_TEST:'
    print '  Normal end of execution.'
    print ''

    return
示例#4
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.'
示例#5
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.'