mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-22 17:22:04 +00:00
Update maths/trapezoidal_rule.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
parent
aa5a8858ea
commit
79ed4e77f9
|
@ -9,7 +9,7 @@ Method 1:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
def method_1(boundary, steps):
|
def trapezoidal_rule(boundary, steps):
|
||||||
"""
|
"""
|
||||||
This function implements the extended trapezoidal rule for numerical integration.
|
This function implements the extended trapezoidal rule for numerical integration.
|
||||||
The function f(x) is provided below.
|
The function f(x) is provided below.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user