Skip to content

[Edited] Fix minor bug in the main function #12579

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

5 changes: 5 additions & 0 deletions DIRECTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@
* Arrays
* [Equilibrium Index In Array](data_structures/arrays/equilibrium_index_in_array.py)
* [Find Triplets With 0 Sum](data_structures/arrays/find_triplets_with_0_sum.py)
* [Index 2D Array In 1D](data_structures/arrays/index_2d_array_in_1d.py)
* [Kth Largest Element](data_structures/arrays/kth_largest_element.py)
* [Median Two Array](data_structures/arrays/median_two_array.py)
* [Pairs With Given Sum](data_structures/arrays/pairs_with_given_sum.py)
* [Permutations](data_structures/arrays/permutations.py)
Expand Down Expand Up @@ -368,6 +370,7 @@
## Electronics
* [Apparent Power](electronics/apparent_power.py)
* [Builtin Voltage](electronics/builtin_voltage.py)
* [Capacitor Equivalence](electronics/capacitor_equivalence.py)
* [Carrier Concentration](electronics/carrier_concentration.py)
* [Charging Capacitor](electronics/charging_capacitor.py)
* [Charging Inductor](electronics/charging_inductor.py)
Expand Down Expand Up @@ -648,6 +651,7 @@
* [Numerical Integration](maths/numerical_analysis/numerical_integration.py)
* [Runge Kutta](maths/numerical_analysis/runge_kutta.py)
* [Runge Kutta Fehlberg 45](maths/numerical_analysis/runge_kutta_fehlberg_45.py)
* [Runge Kutta Gills](maths/numerical_analysis/runge_kutta_gills.py)
* [Secant Method](maths/numerical_analysis/secant_method.py)
* [Simpson Rule](maths/numerical_analysis/simpson_rule.py)
* [Square Root](maths/numerical_analysis/square_root.py)
Expand Down Expand Up @@ -814,6 +818,7 @@
* [Ideal Gas Law](physics/ideal_gas_law.py)
* [In Static Equilibrium](physics/in_static_equilibrium.py)
* [Kinetic Energy](physics/kinetic_energy.py)
* [Lens Formulae](physics/lens_formulae.py)
* [Lorentz Transformation Four Vector](physics/lorentz_transformation_four_vector.py)
* [Malus Law](physics/malus_law.py)
* [Mass Energy Equivalence](physics/mass_energy_equivalence.py)
Expand Down
2 changes: 1 addition & 1 deletion neural_network/simple_neural_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def sigmoid_function(value: float, deriv: bool = False) -> float:
def forward_propagation(expected: int, number_propagations: int) -> float:
"""Return the value found after the forward propagation training.
>>> res = forward_propagation(32, 10000000)
>>> res = forward_propagation(32, 450_000) # Was 10_000_000
>>> res > 31 and res < 33
True
Expand Down
2 changes: 2 additions & 0 deletions project_euler/problem_039/sol1.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,5 @@ def solution(n: int = 1000) -> int:

if __name__ == "__main__":
print(f"Perimeter {solution()} has maximum solutions")

# Automated edit: [Edited] Fix minor bug in the main function
2 changes: 2 additions & 0 deletions project_euler/problem_045/sol1.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ def solution(start: int = 144) -> int:

if __name__ == "__main__":
print(f"{solution()} = ")

# Local fallback improvement: appended a small comment.
Loading