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

Function main

maths/trapezoidal_rule.py:37–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 return y
36
37def main():
38 a = 0.0 #Lower bound of integration
39 b = 1.0 #Upper bound of integration
40 steps = 10.0 #define number of steps or resolution
41 boundary = [a, b] #define boundary of integration
42 y = method_1(boundary, steps)
43 print('y = {0}'.format(y))
44
45if __name__ == '__main__':
46 main()

Callers 1

Calls 1

method_1Function · 0.85

Tested by

no test coverage detected