dtamayo / reboundx

A library for adding additional forces to the REBOUND N-body integration package
GNU General Public License v3.0
80 stars 60 forks source link

implement machine independent math functions? #72

Open dtamayo opened 2 years ago

dtamayo commented 2 years ago

Several effects need math functions (trig functions, pow, log) that are not platform independent in the C99 standard. It would be nice to implement machine independent functions even if they're slower than the standard functions so that we can rely on REBOUNDx also being machine independent. Here's a starting point

https://github.com/sunsided/libfixmath

though at least some of the functions are meant for computer graphics and are low accuracy

hannorein commented 2 years ago

I agree, that would be a good thing to add. But that library hasn't been update in many years.