vectrig

Vectorized approximate trigonometry library optimized for GCC (by jeremysalwen)

Vectrig Alternatives

Similar projects and alternatives to vectrig

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better vectrig alternative or higher similarity.

vectrig reviews and mentions

Posts with mentions or reviews of vectrig. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-03-29.
  • Implementing Cosine in C from Scratch
    10 projects | news.ycombinator.com | 29 Mar 2022
    Thanks for explaining this. I actually wrote a SIMD implementation of trig functions years ago, using the techniques you describe.

    You can check it out: https://github.com/jeremysalwen/vectrig

    I compared several different methods of generating polynomials of different sizes for speed and precision (spoilers: taylor series were the worst and minimax polynomials (Remez algorithm) were the best).

    Another (surprising) thing which I learned during the project was that the range reduction was just as (if not more) important to the accuracy of the implementation than the polynomial. If you think about it, you will realize that it's actually pretty difficult to quickly and accurately compute the sin of large numbers like 2^50.

    I also tried to directly optimize the coefficients for the accuracy of the polynomial on the required range, but that experiment was unsuccessful.

    It's all there in the repository, the implementations, notes about the different polynomials used, and the accuracy/speed statistics for the different methods.

Stats

Basic vectrig repo stats
1
6
10.0
almost 13 years ago

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com