Révision 278 pobysoPythonSage/src/sageSLZ/sageSLZ.sage

sageSLZ.sage (revision 278)
1495 1495
                                                    currentRangeSo, 
1496 1496
                                                    absoluteErrorTypeSo)
1497 1497
    maxErrorSa = pobyso_get_constant_as_rn_with_rf_so_sa(maxErrorSo)
1498
    while maxErrorSa > approxAccurSa:
1498
    ## Expression "approxAccurSa/2" (instead of just approxAccurSa) is added 
1499
    #  since we use polynomial shaving. In order for it to work, we must start 
1500
    #  with a better accuracy.
1501
    while maxErrorSa > approxAccurSa/2:
1499 1502
        print "++Approximation error:", maxErrorSa.n()
1500 1503
        sollya_lib_clear_obj(polySo)
1501 1504
        sollya_lib_clear_obj(intervalCenterSo)
......
1627 1630
    - the center of the interval;
1628 1631
    - the maximum error in the approximation of the input functionSo by the
1629 1632
      output polynomial ; this error <= approxAccurSaS.
1633
      
1630 1634
    Changes fom v 01:
1631 1635
        extra verbose.
1632 1636
    """
......
1664 1668
                                                    absoluteErrorTypeSo)
1665 1669
    maxErrorSa = pobyso_get_constant_as_rn_with_rf_so_sa(maxErrorSo)
1666 1670
    print "...after Taylor expansion."
1667
    while maxErrorSa > approxAccurSa:
1671
    ## Expression "approxAccurSa/2" (instead of just approxAccurSa) is added 
1672
    #  since we use polynomial shaving. In order for it to work, we must start 
1673
    #  with a better accuracy.
1674
    while maxErrorSa > approxAccurSa/2:
1668 1675
        print "++Approximation error:", maxErrorSa.n()
1669 1676
        sollya_lib_clear_obj(polySo)
1670 1677
        sollya_lib_clear_obj(intervalCenterSo)

Formats disponibles : Unified diff