mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-06 10:31:29 +08:00
Update SimpsonRule.py
This commit is contained in:
@ -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()
|
||||||
|
Reference in New Issue
Block a user