Skip to content

Feature request: add support for integrals #864

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

Open
sdwfrost opened this issue Mar 9, 2021 · 2 comments
Open

Feature request: add support for integrals #864

sdwfrost opened this issue Mar 9, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@sdwfrost
Copy link

sdwfrost commented Mar 9, 2021

I'd like to be able to define a variable as an integral of another variable over a dimension, something along the lines of:

@parameters t x
@variables y(t,x)
@derivatives Dt'~t
@derivatives Dx'~x
# define new variable which is the integral of y over x
Y(t) = sum(y[t,])

I'm not really fussy about the syntax for this however.

@ChrisRackauckas
Copy link
Member

I think we want to make it match Symbolics.integral as a standard form for symbolic integrals, and have that do expand_integrals or something to actually integrate. Then we can use the un-expanded integrals as the form here.

JuliaSymbolics/Symbolics.jl#58

@ChrisRackauckas ChrisRackauckas added the enhancement New feature or request label Mar 11, 2021
@lstagner
Copy link

I'm looking into solving the Grad-Shafranov Equation and this functionality is would be helpful as the BC's are given by an double integral.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants