Message274196
BTW, add this other way of writing a native-precision Newton step to see that it's much worse (numerically) than writing it in the "guess + small_correction" form used in roots.py. Mathematically they're identical, but numerically they behave differently:
def native2(x, n):
g = x**(1.0/n)
if g**n == x:
return g
return ((n-1)*g + x/g**(n-1)) / n |
|
Date |
User |
Action |
Args |
2016-09-02 02:07:31 | tim.peters | set | recipients:
+ tim.peters, rhettinger, mark.dickinson, vstinner, ned.deily, steven.daprano, martin.panter, serhiy.storchaka |
2016-09-02 02:07:31 | tim.peters | set | messageid: <1472782051.38.0.731172031082.issue27761@psf.upfronthosting.co.za> |
2016-09-02 02:07:31 | tim.peters | link | issue27761 messages |
2016-09-02 02:07:31 | tim.peters | create | |
|