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

Use HP-like variable change for integration #1414

Open
c3d opened this issue Feb 3, 2025 · 0 comments
Open

Use HP-like variable change for integration #1414

c3d opened this issue Feb 3, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@c3d
Copy link
Owner

c3d commented Feb 3, 2025

When integrating 'sin(x)/x' between 0 and some other value, the expression is evaluating at 0, which causes a Divide by zero error.

On HP calculators, the problem does not exist. According to the HP15 Advanced Functions Handbook, this is achieved by doing a clever change of variable that also benefits in the case of periodic functions like sin because it turns the simple Romberg subdivision into a non-uniform one that minimizes aliasing effects.

This improvement was described by Nigel in an HP Museum Forum thread.

@c3d c3d added the enhancement New feature or request label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant