File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ variables, and parameters. Therefore we label them as follows:
28
28
using SciCompDSL
29
29
30
30
# Define some variables
31
- @DVar x y z
32
31
@IVar t
32
+ @DVar x (t) y (t) z (t)
33
33
@Deriv D' ~ t
34
34
@Param σ ρ β
35
35
```
@@ -275,19 +275,19 @@ is accessible via a function-based interface. This means that all macros are
275
275
syntactic sugar in some form. For example, the variable construction:
276
276
277
277
``` julia
278
- @DVar x y z
279
278
@IVar t
279
+ @DVar x (t) y (t) z (t)
280
280
@Deriv D' ~ t
281
281
@Param σ ρ β
282
282
```
283
283
284
284
is syntactic sugar for:
285
285
286
286
``` julia
287
- x = DependentVariable (:x )
288
- y = DependentVariable (:y )
289
- z = DependentVariable (:z )
290
287
t = IndependentVariable (:t )
288
+ x = DependentVariable (:x ,dependents = [t])
289
+ y = DependentVariable (:y ,dependents = [t])
290
+ z = DependentVariable (:z ,dependents = [t])
291
291
D = Differential (t) # Default of first derivative, Derivative(t,1)
292
292
σ = Parameter (:σ )
293
293
ρ = Parameter (:ρ )
You can’t perform that action at this time.
0 commit comments