()
| 38 | return y |
| 39 | |
| 40 | def 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 | |
| 48 | if __name__ == '__main__': |
| 49 | main() |
no test coverage detected