We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb39674 commit aa10ba2Copy full SHA for aa10ba2
1 file changed
integration.py
@@ -65,7 +65,7 @@ def simpson_array(x, y):
65
Returns:
66
xi (float): numerical approximation of the definite integral.
67
"""
68
- if y.size != y.size:
+ if x.size != y.size:
69
raise ValueError("'x' and 'y' must have same size.")
70
71
h = x[1] - x[0]
@@ -94,7 +94,7 @@ def trapezoidal_array(x, y):
94
95
96
97
98
99
100
0 commit comments