Darwinbots Forum

Code center => Darwinbots Program Source Code => Topic started by: Zelos on November 06, 2005, 10:06:51 AM

Title: arcsin / sin^-1
Post by: Zelos on November 06, 2005, 10:06:51 AM
how do I get arcsin/sin^-1 on visual basic
Title: arcsin / sin^-1
Post by: Numsgil on November 06, 2005, 12:14:34 PM
It's either asin or it doesn't exist...  I forget which exactly.

You might be able to construct your own using trig identities, but it's been years since I looked at that sort of stuff.

What do you need it for anyway?  Maybe there's a better way to do it.
Title: arcsin / sin^-1
Post by: Zelos on November 06, 2005, 01:31:22 PM
I need it to calculate angel of the velocity
Title: arcsin / sin^-1
Post by: Zelos on November 06, 2005, 01:56:58 PM
I read in mdsn that asin exist, but the program complains when I use it
Title: arcsin / sin^-1
Post by: Numsgil on November 06, 2005, 05:43:05 PM
Are you sure you need the angle of velocity?

I find that alot of things are made easier and faster if you use vector math.

Explain exactly what you're doing and I'll see if I can make a way for it to happen.
Title: arcsin / sin^-1
Post by: Zelos on November 07, 2005, 01:25:48 AM
nvm it, I found something in db to use that works