Skip to content

Commit c14466d

Browse files
author
apisarek
committed
get_regular_interpolation_nodes improved
1 parent df82e83 commit c14466d

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Interpolation/nodes.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,7 @@
44

55

66
def get_regular_interpolation_nodes(n, start, end):
7-
interval = end - start
8-
step = interval / n
9-
points = []
10-
for x in np.arange(start, end, step):
11-
points.append((x, fun(x)))
12-
points.append((end, fun(end)))
13-
return points
7+
return [(x, fun(x)) for x in np.linspace(start, end, n)]
148

159

1610
def get_czebyshev_interpolation_nodes(n, start, end):

0 commit comments

Comments
 (0)