Cube root [HP-35]
|
03-17-2020, 04:17 PM
(This post was last modified: 03-18-2020 01:59 AM by Albert Chan.)
Post: #16
|
|||
|
|||
RE: Cube root [HP-35]
(03-16-2020 10:54 PM)Albert Chan Wrote: One issue is optimal range of k, to maximize convergence rate. I made an error assuming better guess speedup Pade convergence. Plotting the errors suggest my pade setup prefer over-estimated guess. For guess x₀ = √√k = k^(1/4), optimal k is before break-even point, at k ≈ √1000 Thus, optimal k should be in range [0.031623, 31.623) \(\large\sqrt[3]k ≈ x \left({2k\;+\; x^3 \over k\;+\;2x^3 } \right) \) Example, try \(\quad\sqrt[3]{27} =\; 3\) x₀ = √√(27) → x3 = 2.9999 99999 99999 99934 // error = +66 ULP x₀ = 10√√.027 → x3 = 3.0000 00000 00000 00709 // error = -709 ULP Example, try \(\quad\sqrt[3]{32}\) = 3.1748 02103 93639 89495 ... x₀ = √√(32) → x3 = 3.1748 02103 93639 89237 // error = +258 ULP x₀ = 10√√.032 → x3 = 3.1748 02103 93639 89710 // error = -215 ULP Edit: rough estimate, with k in range [0.031623, 31.623), x₀ = √√k : \(\large\sqrt[3]k ≈ x_1 = {½\;+\; x_0 \over ½\;+\; 1/x_0}\) // relative error < 1.5% |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)