This commit is contained in:
Omkaar 2022-05-12 09:00:00 +05:30 committed by GitHub
parent 3bff196981
commit e23c18fb5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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