0

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

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

1 Answer 1

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 and acknowledge you have read our privacy policy.

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