0

I have a function to calculate sinus from this library. How can I calculate arcus sinus and arcus cosine?

  • 1
    by arcus sinus do you mean arcos(sin())? – haxerl Apr 2 at 12:39
  • I think it's just arcsin(). – Richard Horrocks Apr 2 at 13:57
  • @haxerl arcsin() and also how to calculate arcos() – Banana Cake Apr 2 at 14:53
2

The library you are referring to approximates sin and cos via piecewise linear function. This approach is applicable to arcsin and arccos functions as well, you just need different table of points.

Also, as long as you already have sin function, you may find y = arcsin(x) by solving sin y = x equation using bisection method, or some other method for finding equation roots.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.