Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ trapezoidal_rule.py
File
trapezoidal_rule.py
maths/trapezoidal_rule.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
''
&
#x27;
2
Numerical integration or quadrature
for
a smooth function f
with
known values at x_i
3
4
This method is the classical approch of suming
'Equally Spaced Abscissas'
Callers
nothing calls this directly
Calls
1
main
Function · 0.70
Tested by
no test coverage detected