Skip to content

Commit e463d4c

Browse files
authored
Fix second example in README.md
I'm not very familiar with either `Julia` or `ModelingToolkit`, but copy pasting the example as it currently stands leads to the following error: ``` ArgumentError: Variable a is not a function of independent variable t. ``` Making the above change seems to resolve it.
1 parent fc6926e commit e463d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ eqs = [D(x) ~ σ*(y-x),
7777
lorenz1 = ODESystem(eqs,name=:lorenz1)
7878
lorenz2 = ODESystem(eqs,name=:lorenz2)
7979

80-
@variables a
80+
@variables a(t)
8181
@parameters γ
8282
connections = [0 ~ lorenz1.x + lorenz2.y + a*γ]
8383
connected = ODESystem(connections,t,[a],[γ],systems=[lorenz1,lorenz2])

0 commit comments

Comments
 (0)