MCPcopy 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
33def f(x): #enter your function here
34 y = (x-0)*(x-0)
35 return y
36
37def main():
38 a = 0.0 #Lower bound of integration

Callers 1

method_1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected