Commit ac993bb
committed
Added function to create variables without @variables macro
genvar(::Symbol) now converts a ::Symbol into a Symbolics.jl variable. "genvar(:f)" or "genvar(:f, :t)" (t is the default) is now equivalent to "@variables f(t)". Multiple dependent variables can be used, e.g., "genvar(:f, [:t, :d1, :d2])", as long as the dependent variables have been declared previously as variables or parameters.1 parent c0fe364 commit ac993bb
1 file changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments