Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Need help with turings trigonometry procedures
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
petree08




PostPosted: Wed Oct 31, 2007 11:21 am   Post subject: Need help with turings trigonometry procedures

er yeah i know how to use the cosd and sind commands and i was wondering if there was a way do use the inverse sine law cuz icouldn't find a command for it

im trying to find angles for a game im working on any help would be awesome
Sponsor
Sponsor
Sponsor
sponsor
Mazer




PostPosted: Wed Oct 31, 2007 12:44 pm   Post subject: RE:Need help with turings trigonometry procedures

arcsin = sin inverse

I'll let you work out the rest.
CodeMonkey2000




PostPosted: Wed Oct 31, 2007 3:37 pm   Post subject: RE:Need help with turings trigonometry procedures

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

Turing doesn't have this built in, but you can make your own functions.
Clayton




PostPosted: Wed Oct 31, 2007 5:24 pm   Post subject: RE:Need help with turings trigonometry procedures

uhhh... Turing most definitely has that built in...
Ultrahex




PostPosted: Wed Oct 31, 2007 5:39 pm   Post subject: Re: Need help with turings trigonometry procedures

*cough*
Radians:
arcsin
arccos
arctan
Degrees:
arcsind
arccosd
arctand
*cough*
petree08




PostPosted: Wed Oct 31, 2007 6:51 pm   Post subject: RE:Need help with turings trigonometry procedures

k thanx a lot guys ive always been finding the slope between two points (without trig) and it doesn't work out as clean as just having an angle.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: