Skip to content

Commit e23c18f

Browse files
authored
Fix typos (TheAlgorithms#6127)
1 parent 3bff196 commit e23c18f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maths/integration_by_simpson_approx.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def simpson_integration(function, a: float, b: float, precision: int = 4) -> flo
4040
Args:
4141
function : the function which's integration is desired
4242
a : the lower limit of integration
43-
b : upper limit of integraion
43+
b : upper limit of integration
4444
precision : precision of the result,error required default is 4
4545
4646
Returns:
@@ -106,7 +106,7 @@ def simpson_integration(function, a: float, b: float, precision: int = 4) -> flo
106106
isinstance(precision, int) and precision > 0
107107
), f"precision should be positive integer your input : {precision}"
108108

109-
# just applying the formula of simpson for approximate integraion written in
109+
# just applying the formula of simpson for approximate integration written in
110110
# mentioned article in first comment of this file and above this function
111111

112112
h = (b - a) / N_STEPS

0 commit comments

Comments
 (0)