-
Notifications
You must be signed in to change notification settings - Fork 19
Update for OrdinaryDiffEq v7 / DifferentialEquations v8 #3
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,7 +90,7 @@ These codes are for instructional purposes. They are not recommended for applica | |
| | Integration | [QuadGK](https://juliamath.github.io/QuadGK.jl/stable/) | | ||
| | Spline | [Dierckx](https://github.com/kbarbary/Dierckx.jl) | | ||
| | [Initial-value problem](https://diffeq.sciml.ai/latest/tutorials/ode_example/#ode_example) | [DifferentialEquations](https://diffeq.sciml.ai/latest/) | | ||
| | [Boundary-value problem](https://diffeq.sciml.ai/latest/tutorials/bvp_example/#Boundary-Value-Problems) | [DifferentialEquations](https://diffeq.sciml.ai/latest/) | | ||
| | [Boundary-value problem](https://diffeq.sciml.ai/latest/tutorials/bvp_example/#Boundary-Value-Problems) | [BoundaryValueDiffEq](https://diffeq.sciml.ai/latest/) | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The other BVP docs are sub-docs here, so the full thing is better. Therefore this is good. |
||
| | Method of lines | [MethodOfLines](https://methodoflines.sciml.ai/dev/) (still under development) | | ||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -17,7 +17,7 @@ function shoot(ϕ,xspan,g₁,g₂,init,tol=1e-5) | |
| IVP = ODEProblem(shootivp,s,float.(xspan)) | ||
| sol = solve(IVP,Tsit5(),abstol=tol/10,reltol=tol/10) | ||
| x = sol.t; y = sol; | ||
| return [g₁(s...),g₂(y[end]...)] | ||
| return [g₁(s...),g₂(y.u[end]...)] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You probably shouldn't splat for performance, but this at least matches before. |
||
| end | ||
|
|
||
| # Find the unknown quantity at x=a by rootfinding. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both versions are still supported.