Skip to content

Commit 2aeb613

Browse files
committed
Fix five_point conditions
1 parent bbfffc5 commit 2aeb613

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎differentiation.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def five_point(x, y):
8787
Returns:
8888
dy (numpy.ndarray): the first derivative values.
8989
"""
90-
if x.size < 6 or y.size < 6:
91-
raise ValueError("'x' and 'y' arrays must have 6 values or more.")
90+
if x.size < 5 or y.size < 5:
91+
raise ValueError("'x' and 'y' arrays must have 5 values or more.")
9292

9393
if x.size != y.size:
9494
raise ValueError("'x' and 'y' must have same size.")

0 commit comments

Comments
 (0)