Skip to content

Commit 7c93e78

Browse files
m-wellsdextorious
authored andcommitted
Update README.md (#22)
Added multidimensional info to readme
1 parent f377c15 commit 7c93e78

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ Z = cumul_integrate(x, z)
3535
zp = permutedims(z)
3636
ZP = cumul_integrate(x, zp, dims=1)
3737

38+
# Multidimensional integration
39+
Y = [i*j for i=x,j=y]
40+
integrate((x,y), Y)
3841
```
3942

4043
The currently available methods are:
@@ -46,6 +49,6 @@ The currently available methods are:
4649
- SimpsonEvenFast
4750
- RombergEven
4851

49-
Only Trapezoidal methods are available for cumulative integrals.
52+
Currently cumulative integrals and multidimensional integrals are restricted to using Trapezoidal methods.
5053

5154
All methods containing "Even" in the name assume evenly spaced data. All methods containing "Fast" omit basic correctness checks and focus on performance. Consequently, the fast methods will segfault or produce incorrect results if you supply incorrect data (vectors of different lengths, etc.). RombergEven needs a power of 2 + 1 points (so 9, 17, 33, 65, 129, 257, 513, 1025...) evenly spaced for it to work. Useful when control over accuracy is needed.

0 commit comments

Comments
 (0)