Timeline for Different ways (and the fastest) to compute sines (and cosines) in Arduino
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 29, 2017 at 22:24 | comment | added | SDsolar | Pretty clever, @sa_leinad. Upvote. I remember doing this when working with biasing of transistors. | |
Apr 29, 2017 at 15:39 | comment | added | sa_leinad | Not necessarily. You could have it so the output is scaled between 0-100 instead of 0-1. This way you are dealing with integers, not floating point. Note: 100 was arbitrary. There is no reason that you couldn't scale the output between 0-128 or 0-512 or 0-1000 or 0-1024. By using a multiple of 2, you only need to do right shifts to scale the result back down. | |
Apr 29, 2017 at 14:58 | comment | added | Transistor Overlord | Will not this involve floating point multiplication? | |
Apr 29, 2017 at 11:44 | history | answered | sa_leinad | CC BY-SA 3.0 |