Skip to content

[FEATURE REQUEST] Riemann Integration #6214

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

Open
il798li opened this issue Apr 6, 2025 · 4 comments
Open

[FEATURE REQUEST] Riemann Integration #6214

il798li opened this issue Apr 6, 2025 · 4 comments

Comments

@il798li
Copy link

il798li commented Apr 6, 2025

What would you like to Propose?

We can use an algorithm that uses Riemann's Left/Right/Midpoint/Trapezoidal sums to approximate the value of definite integrals.

Issue details

Using a deltaX, this will specify the width of each sub-interval. From there, based on the type of Riemann sum, the height of the rectangle can be determined. We can simply add up the areas of all rectangles to estimate the value of a definite integral.

Additional Information

No response

@VSENTHAMIZHAN
Copy link

Hi, I'd like to work on this issue. Can you please assign it to me?

@shankagr7805
Copy link

@il798li I'd like to work on the issue please assign it to me

@il798li
Copy link
Author

il798li commented Apr 15, 2025

@shankagr7805 @VSENTHAMIZHAN I was thinking of working on the issue myself. I have some basic code down already: https://github.com/il798li/Java/blob/master/src/main/java/com/thealgorithms/maths/RiemannIntegration.java

@VSENTHAMIZHAN
Copy link

VSENTHAMIZHAN commented Apr 16, 2025

@il798li Hey! I went through your code — it's super clean and well-structured,
Would you be open to me contributing by adding a few things like:
1)Unit tests for all methods.
2)Optional generalization: allowing user to set number of intervals directly (instead of just accuracy).
3)Some input validation or performance notes. Let me know if you'd like me to take a stab at any of these.

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

3 participants