Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ f
Function
f
maths/trapezoidal_rule.py:33–35 ·
view source on GitHub ↗
(x)
Source
from the content-addressed store, hash-verified
31
x = x + h
32
33
def
f(x):
#enter your function here
34
y = (x-0)*(x-0)
35
return
y
36
37
def
main():
38
a = 0.0
#Lower bound of integration
Callers
1
method_1
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected