Révision 232

pobysoPythonSage/src/pobyso.py (revision 232)
1561 1561
    ## If the current approximation error is too close to the target, there is
1562 1562
    #  no possible gain.
1563 1563
    if currentApproxErrorSa >= approxAccurSa / 2:
1564
        return (polySo, currentApproxErrorSo)
1564
        #### Do not return the initial argument but copies: caller may free 
1565
        #    as inutile after call.
1566
        return (sollya_lib_copy_obj(polySo),
1567
                sollya_lib_copy_obj(currentApproxErrorSo))
1565 1568
    degreeSa             = pobyso_polynomial_degree_so_sa(polySo)
1566 1569
    intervalSa           = pobyso_range_to_interval_so_sa(intervalSo)
1567 1570
    
......
1634 1637
            if iterIndex > 0: # Round 1 and beyond.
1635 1638
                sollya_lib_clear_obj(resPolySo)
1636 1639
                sollya_lib_clear_obj(infNormSo)
1637
                return (polySo, currentApproxErrorSo)
1640
                #### Do not return the arguments but copies: the caller may free
1641
                #    free the former as inutile after call.
1642
                return (sollya_lib_copy_obj(polySo), 
1643
                        sollya_lib_copy_obj(currentApproxErrorSo))
1638 1644
            else: # Round 0, got round 1
1639 1645
                sollya_lib_clear_obj(resPolySo)
1640 1646
                sollya_lib_clear_obj(infNormSo)

Formats disponibles : Unified diff