Extension that adds integral
functionality to compute simple integrals
#2748
Replies: 3 comments 1 reply
-
That looks like an impressive start Joel, awesome! Would be great if we could integrate it (pun intended) in math.js as soon as you feel like it's complete enough to remove the beta label :). I will be happy to give feedback where needed but I'm afraid I lack spare time to help with the development itself. |
Beta Was this translation helpful? Give feedback.
-
@joelhoover @josdejong this is great stuff indeed. Would be really amazing to closely "integrate" with math.js as suggested. |
Beta Was this translation helpful? Give feedback.
-
Hello my friends, any news on integrals ? |
Beta Was this translation helpful? Give feedback.
-
Hi all! I'm pleased to announce the first public release of my current project:
mathjs-simple-integral
(also published to npm). This package implements theintegral
function for Math.js. It is currently in beta and has some rather severe limitations, such as no implementing integration-by-parts or u-substitution, but it is complete enough to be useful in some circumstances (for example, it has full support for polynomial expressions).A quick overview of the integration algorithm: it uses depth-first search memoized pattern matching that transforms the integrand until it can be integrated directly. The rules for integration are simply an array of functions, with each one matching an integrand pattern. These rules can be specified for each call to
integral
(just like providing custom simplification rules forsimplify
). Head over to the project's README for a more in-depth explanation and examples.As this is a much requested feature for Math.js (#35, #442, #788, #993), I though it would be relevant to post about it here. I would also be willing to let the Math.js team take control over the package and integrate it (pun intended) into Math.js itself, if they are interested.
Beta Was this translation helpful? Give feedback.
All reactions