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

Function main

maths/numerical_analysis/simpson_rule.py:73–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72
73def main():
74 a = 0.0 # Lower bound of integration
75 b = 1.0 # Upper bound of integration
76 steps = 10.0 # number of steps or resolution
77 boundary = [a, b] # boundary of integration
78 y = method_2(boundary, steps)
79 print(f"y = {y}")
80
81
82if __name__ == "__main__":

Callers 1

simpson_rule.pyFile · 0.70

Calls 1

method_2Function · 0.85

Tested by

no test coverage detected