A quick precision test
|
06-06-2014, 01:46 AM
Post: #56
|
|||
|
|||
RE: A quick precision test
(06-06-2014 01:03 AM)Claudio L. Wrote: In my case it is not the algorithm, it's the argument. CORDIC does not converge for angles > 1 radian, so I compute that cos() as sin(PI/2-alpha). Sounds like the algorithm. As in you need a different way to compute cos cos(x) = sin(x + pi/2) is generally considered an okay transformation from memory. Taylor series also converge well if you range reduce the argument suitably -- aim for pi/4 or less so that the first term in the series is the most significant. - Pauli |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 12 Guest(s)