mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00: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