#### Archived

This topic is now archived and is closed to further replies.

# Inverse Sine?

This topic is 6106 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I''m working on a 3D driving demo, and I have run into some trouble when attempting to make the various camera views. To calculate the angles, I am sure that I need to use the inverse sine (often written as sin^-1) function, and also maybe inverse cos and inverse tan functions later on. However, Visual Basic does not have this function built in. Does anyone know how to create my own inverse sine function, given these functions and operators to use: sin, cos, tan, atn (arctangent), + * - + ^. So this isn''t a VB problem it''s a maths problem. Any trigonometry geniouses want to help? Thanks in advance!

##### Share on other sites
I''m almost positive VB would have this. Look for arcsin, arccos etc. Also, while looking under sin, see if they have links to asin/arcsin or something.

##### Share on other sites
Thanks for being so quick!

VB has arctangent, but not arcsine or arccosine. I am confused though - is arcsine the same as inverse sine? I don''t think so. By inverse sine I mean a function like this example:

sin(x) = y

Now the inverse sine function would be able to reverse this, so that if I knew y I could find x like this:

invsin(y) = x

That is what I need.

##### Share on other sites
Look here for information on how to calculate arccos, arcsine, etc. from the basic trig-functions available in VB.

##### Share on other sites
quote:
Original post by bazee
Thanks for being so quick!

VB has arctangent, but not arcsine or arccosine. I am confused though - is arcsine the same as inverse sine? I don''t think so. By inverse sine I mean a function like this example:

sin(x) = y

Now the inverse sine function would be able to reverse this, so that if I knew y I could find x like this:

invsin(y) = x

That is what I need.

That''s arcsine.

##### Share on other sites
Thankyou very much! That was exactly what I needed. I will show you my demo when it''s finished, it should take a week or so more.

1. 1
2. 2
Rutin
22
3. 3
4. 4
JoeJ
16
5. 5

• 14
• 29
• 11
• 11
• 9
• ### Forum Statistics

• Total Topics
631775
• Total Posts
3002277
×