433 B
433 B
title, tags, cover, firstSeen, lastUpdated
| title | tags | cover | firstSeen | lastUpdated |
|---|---|---|---|---|
| Radians to degrees | math | watermelon-bike | 2019-08-20T15:58:57+03:00 | 2020-11-02T19:28:27+02:00 |
Converts an angle from radians to degrees.
- Use
math.piand the radian to degree formula to convert the angle from radians to degrees.
from math import pi
def rads_to_degrees(rad):
return (rad * 180.0) / pi
from math import pi
rads_to_degrees(pi / 2) # 90.0