Skip to content

Commit 31b04af

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8767031 commit 31b04af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

maths/arc_length.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
def arc_length(angle: float, radius: float) -> float:
55
"""
66
Calculate the arc length of a circle.
7-
7+
88
The arc length is the distance along the curved line making up the arc.
99
Formula: arc_length = 2 * pi * radius * (angle / 360)
10-
10+
1111
Wikipedia: https://en.wikipedia.org/wiki/Arc_length
12-
12+
1313
Args:
1414
angle: The angle in degrees
1515
radius: The radius of the circle
16-
16+
1717
Returns:
1818
The arc length as a float
19-
19+
2020
>>> arc_length(45, 5)
2121
3.9269908169872414
2222
>>> arc_length(120, 15)

0 commit comments

Comments
 (0)