How do i calculate inverse sine on atmega32? I dont need floating point , the calculation should be fast.
How to calculate inverse sin ?
Author
Message
Look up table is the fastest. Smaller look-up table with interpolation the next fastest.
How do I calculate inverse sine on atmega32?
How accurate do you want it (both inputs and outputs)?
you could get
invsin(707) ==>450 (equiv to 0.707) ==> 45 deg
invsin(7071)==>4499 (equiv to 0.7071==> 44.99 deg
do a search for CORDIC
https://www.allaboutcircuits.com/technical-articles/an-introduction-to-the-cordic-algorithm/
https://www.youtube.com/watch?v=Ze4UnE8R4FM