How to calculate inverse sin ?

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

How do i calculate inverse sine on atmega32? I dont need floating point , the calculation should be fast.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Look up table is the fastest. Smaller look-up table with interpolation the next fastest.

#1 Hardware Problem? https://www.avrfreaks.net/forum/...

#2 Hardware Problem? Read AVR042.

#3 All grounds are not created equal

#4 Have you proved your chip is running at xxMHz?

#5 "If you think you need floating point to solve the problem then you don't understand the problem. If you really do need floating point then you have a problem you do not understand."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

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

 

When in the dark remember-the future looks brighter than ever.   I look forward to being able to predict the future!