()
| 35 | return y |
| 36 | |
| 37 | def 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 | |
| 45 | if __name__ == '__main__': |
| 46 | main() |
no test coverage detected