Skip to content

Commit 3c8f2da

Browse files
committed
docs: fix initialization
1 parent 6f549b5 commit 3c8f2da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/tutorials/input_component.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ using Plots
100100
101101
function MassSpringDamper(; name)
102102
@named input = RealInput()
103-
vars = @variables f(t)=0 x(t)=0 dx(t)=0 ddx(t)=0
103+
vars = @variables f(t) x(t)=0 dx(t) [guess=0] ddx(t)
104104
pars = @parameters m=10 k=1000 d=1
105105
106106
eqs = [
@@ -144,7 +144,7 @@ plot(sol)
144144

145145
If we want to run a new data set, this requires only remaking the problem and solving again
146146
```@example parametrized_interpolation
147-
prob2 = remake(prob, p = [sys.src.data => ones(length(data))])
147+
prob2 = remake(prob, p = [sys.src.data => ones(length(df.data))])
148148
sol2 = solve(prob2)
149149
plot(sol2)
150150
```

0 commit comments

Comments
 (0)