# Crazy Trigonometry

**URL:** <https://forum.kirupa.com/t/crazy-trigonometry/141245>\
**Category:** Uncategorized\
**Created:** [March 18, 2005, 2:19am UTC](https://forum.kirupa.com/t/crazy-trigonometry/141245 "2005-03-18T02:19:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlashman](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@Phlashman](https://forum.kirupa.com/u/Phlashman)\
**Post date:** [March 18, 2005, 2:19am UTC](https://forum.kirupa.com/t/crazy-trigonometry/141245/1 "2005-03-18T02:19:12Z")

</div>

Hi! I’m having some trouble with the trigonometric functions in Flash. I haven’t learned too much about trig, but I’ve got some problems.

I put in this code:  
trace(Math.tan(45))  
and I got the result of:  
1.61977519054386  
Shouldn’t it be 1?

I also tried the cosine and sine of 45, and I got two numbers that their sums would exceed 1, like .8 and .5, about.

What is wrong with Flash’s trigonometry? Is there some way that I need to use a degree-mode-type trigonometric functions rather than radians?

Thanks for your help.
