Skip to content

Commit aa1e89d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 566d47d commit aa1e89d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

maths/numerical_analysis/ordinary_differential_equations.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ def heuns_method(
7373
return x, y
7474

7575

76-
77-
78-
7976
if __name__ == "__main__":
8077
import doctest
8178

@@ -86,4 +83,4 @@ def example_ode(x: float, y: float) -> float:
8683
return y - x**2 + 1
8784

8885
x_res, y_res = heuns_method(example_ode, 0.0, 0.5, 0.25, 4)
89-
print(f"Final heuns methot y value at x={x_res[-1]}: {round(y_res[-1], 4)}")
86+
print(f"Final heuns methot y value at x={x_res[-1]}: {round(y_res[-1], 4)}")

0 commit comments

Comments
 (0)