Can You Calculate Inverse Sine Without Using Sin-1?

  • Thread starter Thread starter leftfield
  • Start date Start date
  • Tags Tags
    Inverse
Click For Summary
Calculating the inverse sine without using sin-1 can be approached using alternative methods like the arctan function and trigonometric identities. The discussion highlights that sine and cosine functions are not one-to-one, leading to potential quadrant issues when determining angles. A suggested method involves using the relationship arcsin(x) = arctan(x / sqrt(1 - x * x)), which derives from the properties of a right triangle. Additionally, the Taylor series expansion for arcsin is mentioned as another way to compute the value, although its application for angle calculation is questioned. Overall, understanding the quadrant and employing these alternative methods can help resolve issues with inverse sine calculations.
leftfield
Is there a way to calculate the inverse sine without using sin-1? I'm having trouble with a programming language that says use arcsine to generate the angle, but when you do the numbers are way out (it uses radians, but that's not the problem).Lefty
 
Mathematics news on Phys.org
It sounds like you are having phasing issues.

They come into play because the sin's are the same when mirrored across the y axis, the cos's are the same when mirrored across the x axis, and tangents are the same when rotated by 180 degrees.

Try putting in a few lines of code to catch what quadrant the angle is in.

For example (pseudocode):

Performing acos function
If quadrant = 3 or 4
->angle = 360-acos
else
->angle = acos
 
Sine and cosine are not one-to-one function so sin<sup>-1</sup> and cos<sup>-1</sup> are not single-valued.

Generally computer or calculator "arc-functions" will give you the value closest to 0: for sin<sup>-1</sup>, between -[pi]/2 and [pi]/2, for cos<sup>-1</sup>, between 0 and [pi].

if [theta] is the value your computer program gives for sin<sup>-1</sup> then [pi]/2- [theta] is also a value- and of course, you can add any multiple of 2 pi to those.
 
Naah, still can't make the numbers work - for the inverse sin of 0.5, my calculator reads (in radians) 0.523598, whereas the computer gives asin as 0.5880026. Still baffled, lefty.
 
What programming language are you using? And can you post the code snippet you're using to compute the result?



Anyways, one alternative is to use the arctan function and trig identities to get the answer for arcsin. Here is the general procedure for deriving this type of identity:

arcsin (x) is the measure of the angle of the triangle with opposite side x and hypotenuse 1. (because sin y is opposite over hypotenuse)

Such a triangle has adjacent side sqrt(1 - x * x)

since tangent is opposite over adjacent, the same angle is given by:

arcsin x = arctan(x / sqrt(1 - x * x))



Or, you could try the taylor series for arcsin:

arcsin(x) = x + (1 / 2) * (x^3 / 3) + ((1 * 3) / (2 * 4)) * (x^5 / 5)
+ ((1 * 3 * 5) / (2 * 4 * 6)) * (x^7 / 7) + ...
 
Last edited:
the Taylor series, cheers! Just one question - how do you use a series like that to give an equation for the angle? (I've looked on the net for a tut but they don't explain very well)
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
Replies
3
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 23 ·
Replies
23
Views
26K
  • · Replies 2 ·
Replies
2
Views
975
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K