3 ms·
I haven’t seen this version mentioned in the thread - if you don’t need a lot of precision, here is a simple 4 line version[1] and here’s how it works[2]. Not
by 0x20cowboy 5y ago
I haven’t seen this version mentioned in the thread - if you don’t need a lot of precision, here is a simple 4 line version[1] and here’s how it works[2].
Not sure who initially came up with it.
[1] https://github.com/robrohan/wefx/blob/1a918cc2d5ad87402a383083c4af286d1fcd16f5/src/math.c#L63 https://github.com/robrohan/wefx/blob/1a918cc2d5ad87402a3830...
[2] https://www.desmos.com/calculator/lo7cf60mjz https://www.desmos.com/calculator/lo7cf60mjz