I am working on finding some angles for my game and am using math.sin/math.cos to find the inverse tangent. I had all my code written then tested it and got some weird numbers. I then decided to try and just take the sine of 45 for a test… In my code I get .8509… but on my calc I get .7071… Whats going on? I’ve since been trying many things even looked it up on the website. It gave an example of taking math.sin(0.123) = 0.12269009002432 and when I write it in code it gives the same result. But when I use a calculator I get .002146753331046. How come the math.sin, cos, etc and my buttons on my calc are producing different results?
My end result is to get a number and find it’s inverse tangent. My solution was simply… math.sin(x) / math.cos(x) = myNumber.
I dunno if I’m even going about getting my angles correctly anyway but either way my math functions don’t seem to match up. [import]uid: 20272 topic_id: 35531 reply_id: 335531[/import]