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

Ability to Integrate? #993

Closed
jeffreyshen19 opened this issue Dec 22, 2017 · 13 comments
Closed

Ability to Integrate? #993

jeffreyshen19 opened this issue Dec 22, 2017 · 13 comments
Labels
category:symbolic Issues regarding symbolic operations like symbolic equation solving or symbolic differentiation feature

Comments

@jeffreyshen19
Copy link
Contributor

From what I can see, there doesn't seem to be an ability to integrate math functions. Is this a desired feature? If so, I can put in a pull request.

Cheers,
Jeffrey

@josdejong
Copy link
Owner

Do you mean like building support for integration (opposite of differentiation)? Or do you mean importing new functions? For the latter case, there already is a function import available.

@jeffreyshen19
Copy link
Contributor Author

I meant the former (opposite of differentiation).

@josdejong
Copy link
Owner

Having support for integration would indeed be great!

It's complicated to implement integration though. Do you have concrete plans how you would go ahead?

@jeffreyshen19
Copy link
Contributor Author

I was thinking of implementing integration similar to how differentiation is done (manually inputing integration rules).

@ericman314
Copy link
Collaborator

ericman314 commented Dec 24, 2017 via email

@jeffreyshen19
Copy link
Contributor Author

Agreed. However, many common functions can be integrated using simple integration rules + reverse chain rule. This, unfortunately, is not general and can not be applied to every function. Another possibility is to have a function which calculates the numeric value of an integral using a Riemannian approximation.

Thoughts?

@josdejong
Copy link
Owner

A numeric integration (and differentiation) function would be interesting too, that's not that hard to implement. It's completely different from symbolic computations though :)

@bjodah
Copy link

bjodah commented Jan 17, 2018

FWIW: As far as I know the best CAS implementation of integration is RUBI. There was a Google summer of code project last year in the sympy organization which aimed to port these rules into SymPy. They didn't quite finish, but once (if) that ends up working, then it shouldn't be too hard writing another export function for mathjs (since the approach they ended up taking was generating Python code).

@ericman314
Copy link
Collaborator

Fascinating idea, @bjodah. I think it's worth a look.

@bjodah
Copy link

bjodah commented Jan 17, 2018

If you are interested in the status of that effort I would recommend reading up/reaching out on SymPy's mailing list: https://groups.google.com/forum/m/#!searchin/sympy/rubi

@josdejong
Copy link
Owner

@joelhoover what you you think about that? (See #1015)

@Schnark
Copy link

Schnark commented Jan 23, 2018

BTW: Numeric integration is actually one of the examples in the documentation: http://mathjs.org/examples/advanced/custom_argument_parsing.js.html

@cshaa cshaa added category:symbolic Issues regarding symbolic operations like symbolic equation solving or symbolic differentiation feature labels Jun 19, 2021
@cshaa
Copy link
Collaborator

cshaa commented Jun 19, 2021

Let's continue the discussion in #1015

@cshaa cshaa closed this as completed Jun 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:symbolic Issues regarding symbolic operations like symbolic equation solving or symbolic differentiation feature
Projects
None yet
Development

No branches or pull requests

6 participants