Skip to content

Commit 48aa71c

Browse files
committed
add note on discrete romberg
1 parent 893bf30 commit 48aa71c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/numericalnim/integrate.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ from ./interpolate import InterpolatorType, newHermiteSpline
1212
##
1313
## ## Integrate discrete data:
1414
## - `trapz`, `simpson`: works for any spacing between points.
15-
## - `romberg`: requires equally spaced points.
15+
## - `romberg`: requires equally spaced points and the number of points must be of the form 2^k + 1 ie 3, 5, 9, 17, 33, 65, 129 etc.
1616

1717
runnableExamples:
1818
import numericalnim, std/[sequtils]

0 commit comments

Comments
 (0)