Skip to content

Commit d0d2589

Browse files
authored
Merge pull request #1467 from visr/typo
docs: fix a few typos
2 parents f03fe44 + cc38a8f commit d0d2589

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

docs/src/basics/AbstractSystem.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Optionally, a system could have:
6262
- `get_noiseeqs(sys)`: Noise equations of the current-level system.
6363

6464
Note that if you know a system is an `AbstractTimeDependentSystem` you could use `get_iv` to get the
65-
unique independent variable directly, rather than using `independenent_variables(sys)[1]`, which is clunky and may cause problems if `sys` is an `AbstractMultivariateSystem` because there may be more than one independent variable. `AbstractTimeIndependentSystem`s do not have a method `get_iv`, and `independent_variables(sys)` will return a size-zero result for such. For an `AbstractMultivariateSystem`, `get_ivs` is equivalent.
65+
unique independent variable directly, rather than using `independent_variables(sys)[1]`, which is clunky and may cause problems if `sys` is an `AbstractMultivariateSystem` because there may be more than one independent variable. `AbstractTimeIndependentSystem`s do not have a method `get_iv`, and `independent_variables(sys)` will return a size-zero result for such. For an `AbstractMultivariateSystem`, `get_ivs` is equivalent.
6666

6767
A system could also have caches:
6868

docs/src/basics/Composition.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ will be lazily reconstructed on demand.
129129

130130
In some scenarios, it could be useful for model parameters to be expressed
131131
in terms of other parameters, or shared between common subsystems.
132-
To fascilitate this, ModelingToolkit supports sybmolic expressions
132+
To facilitate this, ModelingToolkit supports symbolic expressions
133133
in default values, and scoped variables.
134134

135135
With symbolic parameters, it is possible to set the default value of a parameter or initial condition to an expression of other variables.
@@ -256,7 +256,7 @@ solving. In summary: these problems are structurally modified, but could be
256256
more efficient and more stable.
257257

258258
## Components with discontinuous dynamics
259-
When modeling, e.g., impacts, saturations or Coulomb friction, the dynamic equations are discontinuous in either the state or one of its derivatives. This causes the solver to take very small steps around the discontinuity, and sometimes leads to early stopping due to `dt <= dt_min`. The correct way to handle such dynamics is to tell the solver about the discontinuity be means of a root-finding equation. [`ODEsystem`](@ref)s accept a keyword argument `continuous_events`
259+
When modeling, e.g., impacts, saturations or Coulomb friction, the dynamic equations are discontinuous in either the state or one of its derivatives. This causes the solver to take very small steps around the discontinuity, and sometimes leads to early stopping due to `dt <= dt_min`. The correct way to handle such dynamics is to tell the solver about the discontinuity by means of a root-finding equation. [`ODEsystem`](@ref)s accept a keyword argument `continuous_events`
260260
```
261261
ODESystem(eqs, ...; continuous_events::Vector{Equation})
262262
ODESystem(eqs, ...; continuous_events::Pair{Vector{Equation}, Vector{Equation}})

docs/src/basics/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pnew = varmap_to_vars([β=>3.0, c=>10.0, γ=>2.0],parameters(sys))
2727
For statements that are in the `if then else` form, use `IfElse.ifelse` from the
2828
[IfElse.jl](https://github.com/SciML/IfElse.jl) package to represent the code in a
2929
functional form. For handling direct `if` statements, you can use equivalent boolean
30-
mathematical expressions. For example `if x > 0 ...` can be implementated as just
30+
mathematical expressions. For example `if x > 0 ...` can be implemented as just
3131
`(x > 0) * `, where if `x <= 0` then the boolean will evaluate to `0` and thus the
3232
term will be excluded from the model.
3333

docs/src/comparison.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484

8585
- Modia.jl uses Julia's expression objects for representing its equations.
8686
ModelingToolkit.jl uses [Symbolics.jl](https://symbolics.juliasymbolics.org/dev/),
87-
and thus the Julia expressions follow Julia symantics and can be manipulated
87+
and thus the Julia expressions follow Julia semantics and can be manipulated
8888
using a computer algebra system (CAS).
8989
- Modia's compilation pipeline is similar to the
9090
[Dymola symbolic processing pipeline](https://www.claytex.com/tech-blog/model-translation-and-symbolic-manipulation/)

docs/src/tutorials/spring_mass.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ observed(sys)
217217
spring₊x(t) ~ sqrt(abs2(mass₊pos[1](t)) + abs2(mass₊pos[2](t)))
218218
```
219219

220-
These are explicit algebraic equations which can be used to reconstruct the required variables on the fly. This leads to dramatic computational savings since implicitly solving an ODE scales as O(n^3), so fewer states are signficantly better!
220+
These are explicit algebraic equations which can be used to reconstruct the required variables on the fly. This leads to dramatic computational savings since implicitly solving an ODE scales as O(n^3), so fewer states are significantly better!
221221

222222
We can access these variables using the solution object. For example, let's retrieve the x-position of the mass over time:
223223

src/structural_transformation/bareiss.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Keeps compatibility with bariess code movoed to Base/stdlib on older releases
1+
# Keeps compatibility with bariess code moved to Base/stdlib on older releases
22

33
using LinearAlgebra
44
using SparseArrays

src/systems/abstractsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ end
994994
"""
995995
$(TYPEDSIGNATURES)
996996
997-
entend the `basesys` with `sys`, the resulting system would inherit `sys`'s name
997+
extend the `basesys` with `sys`, the resulting system would inherit `sys`'s name
998998
by default.
999999
"""
10001000
function extend(sys::AbstractSystem, basesys::AbstractSystem; name::Symbol=nameof(sys))

0 commit comments

Comments
 (0)