Go back to previous page
Forum URL: http://www.cut-the-knot.org/cgi-bin/dcforum/forumctk.cgi
Forum Name: College math
Topic ID: 596
Message ID: 2
#2, RE: a = sin(f(x) * n); n = ???
Posted by oniwaka on Dec-13-06 at 09:19 AM
In response to message #1

Thank you. I'll be able to rest easily now. Maybe I should take a math refresher course...

I compiled a quick benchmark, and the lookup table is indeed faster in C. But since I'm prototyping in python, which has non-negotiable float precision (requiring type conversion for each lookup), arcsin(a)/f(x) is actually faster.

Thanks again.