Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The cos of 45 should be returning a value of: sqr(2)/2

When I checked the following: test = math.cos(45) it returns the value of: 0.5253

So I thought I had to convert it to degrees: test = math.degrees(math.cos(45)) but instead it returns the value of: 30.0987 I don't know what I'm doing wrong here. I just want the cos(45) to return a value of: sqr(2)/2 just as my calculator does ..

share|improve this question
up vote 11 down vote accepted

Try math.cos(math.radians(45)). Trigonometric functions need their arguments in radians, Blender also uses radians internally.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.