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

Simpler initial example, also highlight parameters #148

Merged
merged 2 commits into from
Feb 18, 2023
Merged

Simpler initial example, also highlight parameters #148

merged 2 commits into from
Feb 18, 2023

Conversation

DanielVandH
Copy link
Member

The README only shows how to perform multidimensional quadrature, and doesn't mention anything about how to use parameters. This PR adds a simple one-dimensional example that also uses parameters.

(In the actual documentation there are some examples of this, but maybe it's nice to also have it at the first thing users see. although the one-dimensional example of

my_sin(x) = solve(IntegralProblem((x, p) -> cos(x), 0.0, x), QuadGKJL()).u

is a bit complicated for what users will most often want to do. Parameters are discussed in https://docs.sciml.ai/Integrals/stable/tutorials/differentiating_integrals/ which is maybe fine since it's mentioned at the start of the first tutorial.)

@ChrisRackauckas ChrisRackauckas merged commit 70444a9 into SciML:master Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants