Skip to content

Add Project Euler problem 587 solution 1 #6269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update variable name L_section_area accordingly
  • Loading branch information
MaximSmolskiy committed Jul 25, 2022
commit 847c14183690c63c859e3a4e5fc9c5e9e0012622
4 changes: 2 additions & 2 deletions project_euler/problem_587/sol1.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ def solution(fraction: float = 1 / 1000) -> int:
15
"""

L_section_area = (1 - pi / 4) / 4
l_section_area = (1 - pi / 4) / 4

for n in count(1):
if concave_triangle_area(n) / L_section_area < fraction:
if concave_triangle_area(n) / l_section_area < fraction:
return n

return -1
Expand Down