Skip to content

Commit 33aaf8d

Browse files
committed
fix several typos
1 parent a5bcebc commit 33aaf8d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/src/solvers/ode_solve.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,7 @@ using IRKGaussLegendre
963963

964964
+ =false (default): for a ODEProblem type
965965
+ =true: for a second-order differential equation
966+
966967
- simd (boolean):
967968

968969
+ =true: SIMD-vectorized implementation only available for Float32 or Float64 computations

docs/src/tutorials/bvp_example.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ There are two problem types available:
3838

3939
The boundary conditions are specified by a function that calculates the residual in-place from the problem solution, such that the residual is $\vec{0}$ when the boundary condition is satisfied.
4040

41+
There are collocation and shooting methods for addressing boundary value problems in DifferentialEquations.jl. We need to use appropriate [available BVP solvers](@ref bvp_solve) to solve `BVProblem`. In this example, we use `MIRK4` to solve the simple pendulum example.
42+
4143
```@example bvp
4244
function bc1!(residual, u, p, t)
4345
residual[1] = u(pi / 4)[1] + pi / 2 # the solution at the middle of the time span should be -pi/2
@@ -48,9 +50,7 @@ sol1 = solve(bvp1, MIRK4(), dt = 0.05)
4850
plot(sol1)
4951
```
5052

51-
The third argument of `BVProblem` or `TwoPointBVProblem` is the initial guess of the solution, which can be specified as a `Vector`, a `Function` of `t` or solution object from previous solving, in this example the initial guess is setted as a `Vector`.
52-
53-
There are collocation and shooting methods for addressing boundary value problems in DifferentialEquations.jl. We need to use appropriate [available BVP solvers](@ref bvp_solve) to solve `BVProblem`. In this example, we use `MIRK4` to solve the simple pendulum example.
53+
The third argument of `BVProblem` or `TwoPointBVProblem` is the initial guess of the solution, which can be specified as a `Vector`, a `Function` of `t` or solution object from previous solving, in this example the initial guess is set as a `Vector`.
5454

5555
```@example bvp
5656
using OrdinaryDiffEq
@@ -64,7 +64,7 @@ sol3 = solve(bvp3, Shooting(Vern7()))
6464
```
6565

6666
The initial guess can also be supplied via a function of `t` or a previous solution type, this is especially handy for parameter analysis.
67-
We changed `u` to `sol` to emphasize the fact that in this case, the boundary condition can be written on the solution object. Thus, all the features on the solution type such as interpolations are available when using both collocation nd shooting method. (i.e. you can have a boundary condition saying that the maximum over the interval is `1` using an optimization function on the continuous output).
67+
We changed `u` to `sol` to emphasize the fact that in this case, the boundary condition can be written on the solution object. Thus, all the features on the solution type such as interpolations are available when using both collocation and shooting method. (i.e. you can have a boundary condition saying that the maximum over the interval is `1` using an optimization function on the continuous output).
6868

6969
```@example bvp
7070
plot(sol3)
@@ -112,7 +112,7 @@ u_1(0) = u_1'(0)= u_1(1)=u_1'(1)=0,u_3(0)=
112112
-1, u_3(1)=1
113113
```
114114

115-
The common way of solving the second order BVP is to define intermidiate variables and transform the second order system into first order one, however, DifferentialEquations.jl allows the direct solving of second order BVP system to achieve more efficiency and higher continuity of the numerical solution.
115+
The common way of solving the second order BVP is to define intermediate variables and transform the second order system into first order one, however, DifferentialEquations.jl allows the direct solving of second order BVP system to achieve more efficiency and higher continuity of the numerical solution.
116116

117117
```@example bvp
118118
function f!(ddu, du, u, p, t)

0 commit comments

Comments
 (0)