Skip to content

Commit

Permalink
Merge pull request #663 from vaerksted/master
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
ChrisRackauckas authored Mar 14, 2023
2 parents 696a955 + 33c7bdf commit eadca99
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/src/basics/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ may be deceiving. For example, `u' = -sqrt(u)` with `u(0)=1` cannot hit zero
because its derivative shrinks to zero, right? Wrong! [It will hit zero in a finite
time, after which the solution is undefined and does not have a purely real solution](https://www.wolframalpha.com/input/?i=u%27%3D-sqrt%28u%29).
`u' = u^2 - 100u` will “usually” go to zero, but if `u(0)>10` then it will go to
infinity. Plot out your diverging solution and see whether the asymtopics are
infinity. Plot out your diverging solution and see whether the asymptotics are
correct: if `u[i]` gets big, do your equations make `u'[i]` positive and growing?
That would be a problem!

Expand Down
8 changes: 4 additions & 4 deletions docs/src/examples/beeler_reuter.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ mutable struct BeelerReuterCpu
C::Array{Float32, 2} # intracellular calcium concentration
M::Array{Float32, 2} # sodium current activation gate (m)
H::Array{Float32, 2} # sodium current inactivation gate (h)
J::Array{Float32, 2} # sodium current slow inactivaiton gate (j)
D::Array{Float32, 2} # calcium current activaiton gate (d)
J::Array{Float32, 2} # sodium current slow inactivation gate (j)
D::Array{Float32, 2} # calcium current activation gate (d)
F::Array{Float32, 2} # calcium current inactivation gate (f)
XI::Array{Float32, 2} # inward-rectifying potassium current (iK1)

Expand Down Expand Up @@ -411,8 +411,8 @@ mutable struct BeelerReuterGpu <: Function
d_C::CuArray{Float32, 2} # intracellular calcium concentration
d_M::CuArray{Float32, 2} # sodium current activation gate (m)
d_H::CuArray{Float32, 2} # sodium current inactivation gate (h)
d_J::CuArray{Float32, 2} # sodium current slow inactivaiton gate (j)
d_D::CuArray{Float32, 2} # calcium current activaiton gate (d)
d_J::CuArray{Float32, 2} # sodium current slow inactivation gate (j)
d_D::CuArray{Float32, 2} # calcium current activation gate (d)
d_F::CuArray{Float32, 2} # calcium current inactivation gate (f)
d_XI::CuArray{Float32, 2} # inward-rectifying potassium current (iK1)

Expand Down
2 changes: 1 addition & 1 deletion docs/src/examples/diffusion_implicit_heat_equation.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ For the interior domain, a central and second-order finite difference stencil is
∇² = \left[\frac{1}{Δz²}, \frac{-2}{Δz²}, \frac{1}{Δz²}\right] \\
```

At the boundaries, we need to modify the stencil to account for Dirichlet and Neumann BCs. Using the following index denotion:
At the boundaries, we need to modify the stencil to account for Dirichlet and Neumann BCs. Using the following index denotation:

- `i` first interior index
- `b` boundary index
Expand Down
2 changes: 1 addition & 1 deletion docs/src/examples/kepler_problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ sol_ = solve(prob2, RK4(), dt = 1 // 5, adaptive = false)
analysis_plot2(sol_, H, L)
```

There is a significant fluctuation in the first integrals, when there is no mainfold projection.
There is a significant fluctuation in the first integrals, when there is no manifold projection.

```@example kepler
function first_integrals_manifold(residual, u, p, t)
Expand Down
4 changes: 2 additions & 2 deletions docs/src/features/callback_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ Lastly, we can wrap it in a nice little constructor:
```@example callback3
function AutoAbstol(save = true; init_curmax = 1e-6)
affect! = AutoAbstolAffect(init_curmax)
condtion = (u, t, integrator) -> true
condition = (u, t, integrator) -> true
save_positions = (save, false)
DiscreteCallback(condtion, affect!, save_positions = save_positions)
DiscreteCallback(condition, affect!, save_positions = save_positions)
end
```

Expand Down

0 comments on commit eadca99

Please sign in to comment.