We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb39674 + aa10ba2 commit 1b163c2Copy full SHA for 1b163c2
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