mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Fix typos (#6127)
This commit is contained in:
parent
3bff196981
commit
e23c18fb5c
@ -40,7 +40,7 @@ def simpson_integration(function, a: float, b: float, precision: int = 4) -> flo
|
||||
Args:
|
||||
function : the function which's integration is desired
|
||||
a : the lower limit of integration
|
||||
b : upper limit of integraion
|
||||
b : upper limit of integration
|
||||
precision : precision of the result,error required default is 4
|
||||
|
||||
Returns:
|
||||
@ -106,7 +106,7 @@ def simpson_integration(function, a: float, b: float, precision: int = 4) -> flo
|
||||
isinstance(precision, int) and precision > 0
|
||||
), f"precision should be positive integer your input : {precision}"
|
||||
|
||||
# just applying the formula of simpson for approximate integraion written in
|
||||
# just applying the formula of simpson for approximate integration written in
|
||||
# mentioned article in first comment of this file and above this function
|
||||
|
||||
h = (b - a) / N_STEPS
|
||||
|
Loading…
Reference in New Issue
Block a user