HP 17B Solver - another ARCTAN(Y/X) approximation
|
06-01-2021, 04:38 PM
Post: #12
|
|||
|
|||
RE: HP 17B Solver - another ARCTAN(Y/X) approximation
(06-01-2021 03:16 PM)Martin Hepperle Wrote: Ah, that's quite compact and accurate! With good approximation formula, we need very few argument reductions. For example, with 3 reductions and n=3 approximation formula Code: def myatan(x): Above code work with any real x, as long as x*x does not overflow. We have 12-digits accuracy (if |x|≤ 1, we have 15-digits accuracy) >>> myatan(10000) 1.5706963267932448 >>> myatan(100) 1.5607966601064045 >>> myatan(1) 0.78539816339744795 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)