Re:Ask HN: Anyone Have Expertise in Trigonometry?
by clumsycomputer on Tuesday September 20, 2022 @09:47AM
(#32911601)
its at least cubic, but the loop here is generalized farther where the sub circle can be phase. so i don't know???
linear search in angle i believe, though depending on the use case i hold onto the index of the last matched point making the next search O(1)
thanks for introducing me to the secant method. at the very least it will help me think about it differently
I prefer the lazy approach :) . The only hard step is 5B. How are you computing the intersection? Are you using a linear search in the angle? Can you use binary search? Probably the secant method is faster https://en.wikipedia.org/wiki/Secant_method but binary search is more foolproof.