MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / f

Function f

maths/simpson_rule.py:36–38  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

34 x = x + h
35
36def f(x): #enter your function here
37 y = (x-0)*(x-0)
38 return y
39
40def main():
41 a = 0.0 #Lower bound of integration

Callers 4

method_2Function · 0.70
calc_derivativeFunction · 0.70
newton_raphsonFunction · 0.70
newton_raphson.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected