From b7c8ab23d545e003efaaca0ccd5ef4c1f88c87cc Mon Sep 17 00:00:00 2001 From: Guduly <133545858+Guduly@users.noreply.github.com> Date: Tue, 15 Aug 2023 20:09:29 -0500 Subject: [PATCH 1/5] Update arc_length.py Wrote the output of testcase --- maths/arc_length.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maths/arc_length.py b/maths/arc_length.py index 9e87ca38cc7d..94d5f440e651 100644 --- a/maths/arc_length.py +++ b/maths/arc_length.py @@ -12,4 +12,4 @@ def arc_length(angle: int, radius: int) -> float: if __name__ == "__main__": - print(arc_length(90, 10)) + print(arc_length(90, 10)) # --> 15.7079632679 From 339330b8d72ed1103cb75cc14fa62c8a4071ffba Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 16 Aug 2023 01:30:10 +0000 Subject: [PATCH 2/5] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- maths/arc_length.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maths/arc_length.py b/maths/arc_length.py index 94d5f440e651..a0d755b4da5e 100644 --- a/maths/arc_length.py +++ b/maths/arc_length.py @@ -12,4 +12,4 @@ def arc_length(angle: int, radius: int) -> float: if __name__ == "__main__": - print(arc_length(90, 10)) # --> 15.7079632679 + print(arc_length(90, 10)) # --> 15.7079632679 From 668ef1f78e6bcb4d88cdb2b065d0c3e0849b4e84 Mon Sep 17 00:00:00 2001 From: Guduly <133545858+Guduly@users.noreply.github.com> Date: Thu, 17 Aug 2023 06:50:52 -0500 Subject: [PATCH 3/5] Update arc_length.py Added the requested changes --- maths/arc_length.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/maths/arc_length.py b/maths/arc_length.py index a0d755b4da5e..35cfb05b5cf4 100644 --- a/maths/arc_length.py +++ b/maths/arc_length.py @@ -12,4 +12,8 @@ def arc_length(angle: int, radius: int) -> float: if __name__ == "__main__": - print(arc_length(90, 10)) # --> 15.7079632679 + print(arc_length(90, 10)) + """ + >>> arc_length(90, 10) + 15.7079632679 + """ From 8691180fd4ed4712eb4ac17bf83e936cb7a9c513 Mon Sep 17 00:00:00 2001 From: Guduly <133545858+Guduly@users.noreply.github.com> Date: Thu, 17 Aug 2023 20:23:17 -0500 Subject: [PATCH 4/5] Update arc_length.py followed the change request --- maths/arc_length.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/maths/arc_length.py b/maths/arc_length.py index 35cfb05b5cf4..23923e0c9bf9 100644 --- a/maths/arc_length.py +++ b/maths/arc_length.py @@ -7,13 +7,11 @@ def arc_length(angle: int, radius: int) -> float: 3.9269908169872414 >>> arc_length(120, 15) 31.415926535897928 + >>> arc_length(90, 10) + 15.7079632679 """ return 2 * pi * radius * (angle / 360) if __name__ == "__main__": print(arc_length(90, 10)) - """ - >>> arc_length(90, 10) - 15.7079632679 - """ From c1c09fccacb461d7732cefe81ba0910273a286c2 Mon Sep 17 00:00:00 2001 From: Guduly <133545858+Guduly@users.noreply.github.com> Date: Sun, 20 Aug 2023 10:41:50 -0500 Subject: [PATCH 5/5] Update arc_length.py followed suggestions --- maths/arc_length.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maths/arc_length.py b/maths/arc_length.py index 23923e0c9bf9..4c518f321dc7 100644 --- a/maths/arc_length.py +++ b/maths/arc_length.py @@ -8,7 +8,7 @@ def arc_length(angle: int, radius: int) -> float: >>> arc_length(120, 15) 31.415926535897928 >>> arc_length(90, 10) - 15.7079632679 + 15.707963267948966 """ return 2 * pi * radius * (angle / 360)