Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integral of a polynomial over a simplex with 'spray' (not an issue) #37

Open
stla opened this issue Dec 5, 2022 · 4 comments
Open

Integral of a polynomial over a simplex with 'spray' (not an issue) #37

stla opened this issue Dec 5, 2022 · 4 comments

Comments

@stla
Copy link

stla commented Dec 5, 2022

Hi,

I wrote this blog post which involves spray. Maybe you would like to link it in the README (or include the function in the package?).

@RobinHankin
Copy link
Owner

RobinHankin commented Dec 8, 2022 via email

@stla
Copy link
Author

stla commented Dec 8, 2022

Hi Robin,

Are you aware of the SimplicialCubature package? It is good. It implements adaptive integration on simplices.

I don't have a preferred citation format for the blog post.

Actually I'm wondering whether Lasserre's results are really new. Because everything is derived from the formula for the integral of a monomial over the unit simplex, and I'm not sure this is new.

@stla
Copy link
Author

stla commented Dec 9, 2022

Ah but for a Dirichlet distribution the support is the boundary of a simplex, like x_1 + ... + x_n = 1. This is not the simplex x_1 + ... + x_n <= 1. So the SimplicialCubature package does not help here.

@stla
Copy link
Author

stla commented Dec 13, 2022

Hi Robin,

I've just done qspray, a GMP version of spray. It allows to get the value of the integral as an exact rational number.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants