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

Function main

maths/simpson_rule.py:40–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

simpson_rule.pyFile · 0.70

Calls 1

method_2Function · 0.85

Tested by

no test coverage detected