Add advanced ODE solver cases#320
Draft
KingArth0r wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds several new symbolic DSolve paths while keeping the implementation scoped to the differential-equation solver:
replaceDerivativeOfDependent()helper indifferential-equation-utils.tsfor solver recognizers that need to rewrite derivative terms.y = x y' + f(y').Notes
This intentionally does not claim general Riccati or Abel support. Riccati is limited to constant particular solutions for now; Abel support is limited to constant-coefficient first-kind equations where integration succeeds. The Bessel path uses existing special-function derivative support, which makes it more maintainable than emitting special-function solutions CE cannot verify.
Validation
npx jest --config ./config/jest.config.cjs test/compute-engine/differential-equations.test.ts --runInBand --reporters defaultnpx prettier --check src/compute-engine/differential-equation-utils.ts src/compute-engine/symbolic/differential-equations.ts test/compute-engine/differential-equations.test.tsBoth passed locally.