Fast, accurate Sin generators
Sin generators with better precision and speed than the built-in Sin generator

DESCRIPTION
The builtin Sin macro provides very limited precision guarantees, and is not suitable for use in many situations. This download contains a new Core macro implementation of Sin that provides good performance, and full floating-point accuracy.
Since the original posting, QuickSin18 and and QuickSin27 have proven not to be particular efficient or accurate compared to core sin primitives.
RationalSin, however, looks like it's a very good choice. For a modest increase in CPU use, RationalSin provides full-precision floating point sin (24-bit accuracy, with worst-case E less than floating-point Epsilon). RationalSin provides better accuracy, and very slightly better performance the previous high-precision sin macro of choice, SinWT.
RationalSin works well on AMD, Intel and PowerPC platforms, and is -- so far -- the macro of choice for operations that require full floating-point precision.
Notes included in the ZIP file contain analysis of precision, and performance benchmarks in a real-world scenario of several Sin macros [rd: that should be updated to reflect further analysis soon].
Sin18 and Sin24 are not suitable for use in any application, and should be removed from the upload. I'll upload an update without them later. -rd.
COMMENTS (7)