We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8767031 commit 31b04afCopy full SHA for 31b04af
maths/arc_length.py
@@ -4,19 +4,19 @@
4
def arc_length(angle: float, radius: float) -> float:
5
"""
6
Calculate the arc length of a circle.
7
-
+
8
The arc length is the distance along the curved line making up the arc.
9
Formula: arc_length = 2 * pi * radius * (angle / 360)
10
11
Wikipedia: https://en.wikipedia.org/wiki/Arc_length
12
13
Args:
14
angle: The angle in degrees
15
radius: The radius of the circle
16
17
Returns:
18
The arc length as a float
19
20
>>> arc_length(45, 5)
21
3.9269908169872414
22
>>> arc_length(120, 15)
0 commit comments