We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 597a56b commit dbd2dc5Copy full SHA for dbd2dc5
docs/src/tutorials/nonlinear.md
@@ -12,11 +12,12 @@ using ModelingToolkit, NonlinearSolve
12
# Define a nonlinear system
13
@variables x y z
14
@parameters σ ρ β
15
-@mtkbuild ns = NonlinearSystem([
16
- 0 ~ σ * (y - x)
17
- 0 ~ x * (ρ - z) - y
18
- 0 ~ x * y - β * z
19
-])
+eqs = [0 ~ σ * (y - x)
+ 0 ~ x * (ρ - z) - y
+ 0 ~ x * y - β * z]
+guesses = [x => 1.0, y => 0.0, z => 0.0]
+ps = [σ => 10.0, ρ => 26.0, β => 8 / 3]
20
+@mtkbuild ns = NonlinearSystem(eqs)
21
22
guesses = [x => 1.0, y => 0.0, z => 0.0]
23
ps = [σ => 10.0, ρ => 26.0, β => 8 / 3]
0 commit comments