3 ms·
> tries to implement performance critical numerical codes but doesn't know the implications of Taylor expanding the sine function? That would be me, I’m afraid
by Const-me 1y ago
> tries to implement performance critical numerical codes but doesn't know the implications of Taylor expanding the sine function?
That would be me, I’m afraid. I know little about Taylor series, but I’m pretty sure it’s less than ideal for the use case.
Here’s a better way to implement faster trigonometry functions in C++ https://github.com/Const-me/AvxMath/blob/master/AvxMath/AvxMathTrig.cpp#L64-L128 https://github.com/Const-me/AvxMath/blob/master/AvxMath/AvxM... That particular source file implements that for 4-wide FP64 AVX vectors.
- deleted 1y ago[deleted]