Update SimpsonRule.py

This commit is contained in:
cclauss 2018-03-19 03:28:00 +01:00 committed by GitHub
parent 3615322790
commit 4fd777e3b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ def main():
steps = 10.0 #define number of steps or resolution steps = 10.0 #define number of steps or resolution
boundary = [a, b] #define boundary of integration boundary = [a, b] #define boundary of integration
y = method_2(boundary, steps) y = method_2(boundary, steps)
print 'y = {0}'.format(y) print('y = {0}'.format(y))
if __name__ == '__main__': if __name__ == '__main__':
main() main()