Question for Trig Gurus
|
08-01-2022, 05:19 AM
(This post was last modified: 08-02-2022 05:05 AM by Thomas Klemm.)
Post: #29
|
|||
|
|||
RE: Question for Trig Gurus
(07-31-2022 09:54 PM)Albert Chan Wrote: There is no difference in convergence rate, whether we pick atan, asin, or acos That's not what I meant. If we use \(d(2, 2)\) in the implementation of \(\cos^{-1}\) we have the following function: Code: def arccos(x): This leads to the following result: 0.0: 87.024464 (90.000000) 0.1: 81.877941 (84.260830) 0.2: 76.582001 (78.463041) 0.3: 71.086883 (72.542397) 0.4: 65.326413 (66.421822) 0.5: 59.207517 (60.000000) 0.6: 52.589501 (53.130102) 0.7: 45.237511 (45.572996) 0.8: 36.695075 (36.869898) 0.9: 25.782656 (25.841933) 1.0: 0.000000 ( 0.000000) This does not produce 5 correct figures. Whereas using the previous implementation we get: 0.0: 89.999750 (90.000000) 0.1: 84.260698 (84.260830) 0.2: 78.462975 (78.463041) 0.3: 72.542366 (72.542397) 0.4: 66.421808 (66.421822) 0.5: 59.999995 (60.000000) 0.6: 53.130101 (53.130102) 0.7: 45.572996 (45.572996) 0.8: 36.869898 (36.869898) 0.9: 25.841933 (25.841933) 1.0: 0.000000 ( 0.000000) That's why I used \(d(3, 3)\) in this case. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)