Skip to content

Commit 672e7bd

Browse files
Update arc_length.py (TheAlgorithms#8964)
* Update arc_length.py Wrote the output of testcase * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update arc_length.py Added the requested changes * Update arc_length.py followed the change request * Update arc_length.py followed suggestions --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 062957e commit 672e7bd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

maths/arc_length.py

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ def arc_length(angle: int, radius: int) -> float:
77
3.9269908169872414
88
>>> arc_length(120, 15)
99
31.415926535897928
10+
>>> arc_length(90, 10)
11+
15.707963267948966
1012
"""
1113
return 2 * pi * radius * (angle / 360)
1214

0 commit comments

Comments
 (0)