Skip to content

Commit 17e1e4e

Browse files
Fix README
1 parent 36ffe5b commit 17e1e4e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ and parameters. Therefore we label them as follows:
2828
using ModelingToolkit
2929

3030
# Define some variables
31-
@parameters t σ ρ β
31+
@parameters t() σ() ρ() β()
3232
@variables x(t) y(t) z(t)
3333
@derivatives D'~t
3434
```
@@ -80,22 +80,22 @@ state of the previous ODE. This is the nonlinear system defined by where the
8080
derivatives are zero. We use (unknown) variables for our nonlinear system.
8181
8282
```julia
83-
@variables x y z
84-
@parameters σ ρ β
83+
@variables x() y() z()
84+
@parameters σ() ρ() β()
8585

8686
# Define a nonlinear system
8787
eqs = [0 ~ σ*(y-x),
8888
0 ~ x*-z)-y,
8989
0 ~ x*y - β*z]
9090
ns = NonlinearSystem(eqs, [x,y,z])
91-
nlsys_func = generate_function(ns, [x,y,z], [ρ,σ,β])
91+
nlsys_func = generate_function(ns, [x,y,z], [σ,ρ,β])
9292
```
9393
9494
which generates:
9595
9696
```julia
9797
:((##364, u, p)->begin
98-
let (x, z, y, ρ, σ, β) = (u[1], u[2], u[3], p[1], p[2], p[3])
98+
let (x, y, z, σ, ρ, β) = (u[1], u[2], u[3], p[1], p[2], p[3])
9999
##364[1] = σ * (y - x)
100100
##364[2] = x * (ρ - z) - y
101101
##364[3] = x * y - β * z

0 commit comments

Comments
 (0)