mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 18:38:39 +00:00
Update arc_length.py
followed the change request
This commit is contained in:
parent
668ef1f78e
commit
8691180fd4
@ -7,13 +7,11 @@ def arc_length(angle: int, radius: int) -> float:
|
|||||||
3.9269908169872414
|
3.9269908169872414
|
||||||
>>> arc_length(120, 15)
|
>>> arc_length(120, 15)
|
||||||
31.415926535897928
|
31.415926535897928
|
||||||
|
>>> arc_length(90, 10)
|
||||||
|
15.7079632679
|
||||||
"""
|
"""
|
||||||
return 2 * pi * radius * (angle / 360)
|
return 2 * pi * radius * (angle / 360)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print(arc_length(90, 10))
|
print(arc_length(90, 10))
|
||||||
"""
|
|
||||||
>>> arc_length(90, 10)
|
|
||||||
15.7079632679
|
|
||||||
"""
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user