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

quadpy, orthopy #149

Open
nschloe opened this issue Jun 27, 2019 · 4 comments
Open

quadpy, orthopy #149

nschloe opened this issue Jun 27, 2019 · 4 comments

Comments

@nschloe
Copy link

nschloe commented Jun 27, 2019

I see that chaospy does many things around quadrature and orthogonal polynomials. Perhaps you can use what's been implemented in https://github.com/nschloe/quadpy and https://github.com/nschloe/orthopy (two projects of mine). I'm currently updating the documentation, let me know if there's anything I can help you with.

@jonathf
Copy link
Owner

jonathf commented Jun 28, 2019

Interesting couple of projects you have there. Thank you for the offer. I'll take a closer look over the summer. I imagine there are some functionality that make sense to port.

Also feel free to take anything you find of interest.

@jonathf
Copy link
Owner

jonathf commented Jul 2, 2019

You have a few extra quadrature rules I'd love to add to the fold. Namely Kronrod, Lobatto and Newton-Cotes. You even have a few I haven't heard about before like Radau and Tanh-Sinh. I'll tag you to review some of the PRs. If you have the time, I would appreciate your input.

@nschloe
Copy link
Author

nschloe commented Jul 2, 2019

Radau and Tanh-Sinh

Gauss-Radau is series of quadrature schemes that simply includes the left endpoint of the integration domain. It's classical.

tanh-sinh is a different beast. It's pretty new (1970s or so) and integrates almost no function exactly, not even constant functions or polynomials of low degree for that matter. The upside is that it can integrate many functions with stunning precision (error below machine precision), even if there are (integrable) singularities at the endpoints of the integration domain.

@jonathf
Copy link
Owner

jonathf commented Jul 14, 2019

Thanks. Radau is straiht forward it seems. Tanh-sinh seems to be a bit work to adapt. I'll see if I can get my head around it.

I am currently working on porting the modified-Chebyshev algorithm. I see that it done in two levels where the outer function takes moments only, and the inner function takes an additional a and b. However, a and b is always set to be the zero-vector, and if I insert any non-zero values into the vector, I get a different answer.

Do the a and the b serve any interpretable purpose? If so, would a user be interested in modifying them?

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

No branches or pull requests

2 participants