geoprocessing - Cosine 30

198
1
Jump to solution
07-24-2019 07:11 AM
FabioGrita
New Contributor II

Hello, 

can somebody tell me why for the Math function "Cosine" of the Spatial Analyst the Cosine of 30 is 0.154251 instead of 0.8660254?

I tried to create a constant grid using the cosine function and this is the result.

Many thanks

Fabio

0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Esteemed Contributor

angles must be in radians and not in degrees

import math

math.cos(30)
Out[2]: 0.15425144988758405

math.cos(math.radians(30))
Out[3]: 0.8660254037844387

View solution in original post

1 Reply
DanPatterson_Retired
MVP Esteemed Contributor

angles must be in radians and not in degrees

import math

math.cos(30)
Out[2]: 0.15425144988758405

math.cos(math.radians(30))
Out[3]: 0.8660254037844387