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

Create RiemannIntegration.java #6215

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Conversation

il798li
Copy link

@il798li il798li commented Apr 6, 2025

This class approximates integrals by using 4 of Riemann's approximation method.

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

il798li added 2 commits April 6, 2025 14:03
This class approximates integrals by using 4 of Riemann's approximation method.
used clang-format to format my java code
@codecov-commenter
Copy link

codecov-commenter commented Apr 6, 2025

Codecov Report

Attention: Patch coverage is 0% with 32 lines in your changes missing coverage. Please review.

Project coverage is 73.66%. Comparing base (2570a99) to head (49ae0ea).

Files with missing lines Patch % Lines
...va/com/thealgorithms/maths/RiemannIntegration.java 0.00% 32 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6215      +/-   ##
============================================
- Coverage     73.78%   73.66%   -0.13%     
  Complexity     5299     5299              
============================================
  Files           671      672       +1     
  Lines         18344    18376      +32     
  Branches       3546     3550       +4     
============================================
  Hits          13536    13536              
- Misses         4262     4294      +32     
  Partials        546      546              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

il798li added 6 commits April 6, 2025 17:18
Added four separate methods for each form of Riemann sumse
added comments explaining how the code works
made all the riemann integration methods static
added an example usage of the riemann integration
fixed some of the methods' bugs
i'll deal with formatting later
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

Successfully merging this pull request may close these issues.

2 participants