|
Your time now: Mon Nov 23, 2009 12:22 pm
|
View unanswered posts | View active topics
| Author |
Message |
|
Fang Lunin
|
Post subject: Evil Trig Posted: Fri May 13, 2005 10:48 am |
|
Joined: Fri May 13, 2005 9:49 am Posts: 9
|
|
Hey, i was needing some trig functions for a game im working on (plus to make a handy auto trig thing so i dont have to calculate a few things ^_^), and i know about the ones allready in vb (sin(),cos(),tan()) but i was wondering if anyone had figured out how to do Csc, Sec, and Cot (aka Sin^-1()...exc) Help would be appreciated as i cant seem to get it to recognise them and i really dont want to have to convert them if i dont have to (besides the fact you have to devide by things like .0081 and for some reason it says devide by 0)
|
|
| Top |
|
 |
|
dafunkymunky
|
Post subject: Posted: Fri May 13, 2005 3:08 pm |
|
 |
| 100+ Club |
 |
Joined: Fri Apr 08, 2005 8:32 am Posts: 182 Location: India
|
|
thats easy
csc=1/sin()
sec=1/cos()
cot=1/tan()
this is the general formulae
you can calculate them this way
_________________ --------DAFUNKYMUNKY--------
::THE::NECESSARY::[D]EVIL::
....errr i mean munky....
|
|
| Top |
|
 |
|
dafunkymunky
|
Post subject: Posted: Fri May 13, 2005 3:11 pm |
|
 |
| 100+ Club |
 |
Joined: Fri Apr 08, 2005 8:32 am Posts: 182 Location: India
|
|
ok didnt see your second prob
why dont you try deviding by val(0.0081)
i'll come up with the exact solution tomorrow
_________________ --------DAFUNKYMUNKY--------
::THE::NECESSARY::[D]EVIL::
....errr i mean munky....
|
|
| Top |
|
 |
|
Fang Lunin
|
Post subject: Ive got it now. Posted: Mon Jun 06, 2005 3:07 am |
|
Joined: Fri May 13, 2005 9:49 am Posts: 9
|
|
i spent all that time working on it then i find out theres a Cot function built in abreviated atn(), for ArcTangent *grumble grumble* i hate trig...
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 0 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|
|