From 5412f7a1b135aa0ab4025b2ae222716d5ae36d77 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Mon, 17 Jul 2023 15:33:08 -0400 Subject: [PATCH] mention trapz --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 73838ae..2ed30cb 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,13 @@ can return any vector-like object (technically, any type supporting `+`, `-`, `*` real, and `norm`: a Banach space). You can integrate real, complex, and matrix-valued integrands, for example. +Note that HCubature assumes that your function `f(x)` can be computed at +*arbitrary* points in the integration domain. (This is the ideal +way to do numerical integration.) If you instead have `f(x)` precomputed +at a fixed set of points, such as a Cartesian grid, you will need to +use some other method (e.g. [Trapz.jl](https://github.com/francescoalemanno/Trapz.jl) for +a multidimensional trapezoidal rule). + ## Usage Assuming you've installed the HCubature package (via `Pkg.add`) and