Révision 162 pobysoPythonSage/src/testPobyso.sage

testPobyso.sage (revision 162)
76 76
    pointSo    = pobyso_constant_sa_so(RR("1.5"))
77 77
    intervalSo = pobyso_interval_to_range_sa_so(intervalSa)
78 78
    #
79
    def test(lowerBoundSa, upperBoundSa):
79
    def test(functionSo, degreeSo, pointSo, intervalSo):
80 80
        taylorformSo = pobyso_taylorform_so_so(functionSo,
81 81
                                               degreeSo,
82 82
                                               pointSo,
83 83
                                               intervalSo)
84
        sollya_lib_clear_obj(rangeSo)
84
        pobyso_clear_taylorform_sa_so(taylorformSo)
85 85
    #
86
    wrapped = test_pobyso_wrapper(test,lowerBoundSa, upperBoundSa)
86
    wrapped = test_pobyso_wrapper(test,
87
                                  functionSo, 
88
                                  degreeSo, 
89
                                  pointSo, 
90
                                  intervalSo)
87 91
    timing = min(timeit.repeat(wrapped, repeat=repeat, number=number))
88 92
    #
89
    precSo = pobyso_get_prec_so()
90
    #pobyso_autoprint(precSo)
91
    sollya_lib_clear_obj(precSo)
93
    sollya_lib_clear_obj(functionSo)
94
    sollya_lib_clear_obj(degreeSo)
95
    sollya_lib_clear_obj(pointSo)
96
    sollya_lib_clear_obj(intervalSo)
92 97
    print "\t...", functionName, "done."
93 98
    return timing
94 99
# End test_pobyso_bounds_to_range_sa_so

Formats disponibles : Unified diff