Skip to content

Conversation

@michealroberts
Copy link
Owner

feat: add perform_definite_integral to integration in celerity module

@michealroberts michealroberts added enhancement New feature or request feature New feature or request labels Apr 30, 2025
@michealroberts michealroberts requested a review from Copilot April 30, 2025 16:15
@michealroberts michealroberts self-assigned this Apr 30, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new function, perform_definite_integral, to the celerity module to approximate definite integrals using Simpson's rule.

  • Implements perform_definite_integral with input validations and Simpson’s rule calculations.
  • Adds comprehensive unit tests in tests/test_integration.py covering polynomial, trigonometric, exponential functions, along with edge cases.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/celerity/integration.py Adds perform_definite_integral using Simpson's rule with validation.
tests/test_integration.py Provides unit tests to verify integration with various functions.

feat: add perform_definite_integral to integration in celerity module
@michealroberts michealroberts force-pushed the feature/integration/perform_definite_integral branch from 3fde2f9 to 9fd9719 Compare April 30, 2025 16:16
@michealroberts michealroberts requested a review from Copilot April 30, 2025 16:16
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new function, perform_definite_integral, to compute the definite integral using Simpson’s rule and includes corresponding tests.

  • Added the perform_definite_integral implementation to src/celerity/integration.py
  • Included comprehensive tests in tests/test_integration.py to validate various integration scenarios

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
tests/test_integration.py Introduces tests for the new integration function using a variety of mathematical functions
src/celerity/integration.py Implements perform_definite_integral using Simpson’s rule with proper input validations

@michealroberts michealroberts merged commit af9fc03 into main Apr 30, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants