Can You Calculate Inverse Sine Without Using Sin-1?

  • Thread starter leftfield
  • Start date
  • Tags
    Inverse
In summary, the conversation discusses various methods for calculating the inverse sine without using sin-1, including using trig identities and the Taylor series. The issue of phasing is also mentioned, as well as the fact that sine and cosine are not one-to-one functions. The conversation also includes a pseudocode example and a suggestion to use the arctan function.
  • #1
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
  • #2
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
 
  • #3
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.
 
  • #4
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.
 
  • #5
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:
  • #6
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)
 

What is inverse sin/cos/tan?

Inverse sin/cos/tan, also known as arcsin/arccos/arctan, is the mathematical operation that is the opposite of sin/cos/tan. It takes the output of sin/cos/tan function and returns the angle that produced that output.

What is the domain and range of inverse sin/cos/tan?

The domain of inverse sin/cos/tan is the set of all possible outputs of sin/cos/tan, which is between -1 and 1. The range is the set of all angles between -π/2 and π/2 for inverse sin, 0 and π for inverse cos, and -π/2 and π/2 for inverse tan.

How is inverse sin/cos/tan different from sin/cos/tan?

Inverse sin/cos/tan is the opposite operation of sin/cos/tan. While sin/cos/tan takes an angle and returns the ratio of the sides of a right triangle, inverse sin/cos/tan takes the output of sin/cos/tan and returns the angle that produced that output.

What are the main properties of inverse sin/cos/tan?

The main properties of inverse sin/cos/tan include the domain and range mentioned above, as well as the fact that they are one-to-one functions, meaning that each input has a unique output. They are also continuous and differentiable on their respective domains.

How is inverse sin/cos/tan used in real life?

Inverse sin/cos/tan is used in various fields such as engineering, physics, and astronomy to solve problems involving angles and triangles. It is also used in navigation, surveying, and construction to calculate distances and angles. Inverse sin/cos/tan can also be used to find the unknown sides or angles of right triangles in real-life situations.

Similar threads

  • General Math
Replies
13
Views
1K
Replies
8
Views
908
  • Calculus and Beyond Homework Help
Replies
2
Views
66
Replies
1
Views
1K
Replies
23
Views
24K
Replies
4
Views
2K
Replies
14
Views
1K
  • General Math
Replies
8
Views
2K
Back
Top