Take the 2-minute tour ×
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It's 100% free, no registration required.

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

1 Answer 1

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.