@@ -418,7 +418,7 @@ expr = β[1]* x + y^α + σ(3) * (z - t) - β[2] * w(t - 1)
418418
419419Symbolics supports creating variables that denote an array of some size.
420420
421- ```julia
421+ ```jldoctest
422422julia> @variables x[1:3]
4234231-element Vector{Symbolics.Arr{Num, 1}}:
424424 x[1:3]
@@ -436,7 +436,7 @@ julia> @variables t z(t)[1:3] # also works for dependent variables
436436A symbol or expression that represents an array can be turned into an array of
437437symbols or expressions using the `scalarize` function.
438438
439- ```julia
439+ ```jldoctest
440440julia> Symbolics.scalarize(z)
4414413-element Vector{Num}:
442442 (z(t))[1]
@@ -451,7 +451,7 @@ operator, and in this case, `@variables` doesn't automatically assign the value,
451451instead, it only returns a vector of symbolic variables. All the rest of the
452452syntax also applies here.
453453
454- ```julia
454+ ```jldoctest
455455julia> a, b, c = :runtime_symbol_value, :value_b, :value_c
456456(:runtime_symbol_value, :value_b, :value_c)
457457
@@ -676,7 +676,7 @@ notation. Use `@variables` instead to create symbolic array variables (as
676676opposed to array of variables). See `variable` to create one variable with
677677subscripts.
678678
679- ```julia-repl
679+ ```jldoctest
680680julia> Symbolics.variables(:x, 1:3, 3:6)
6816813×4 Matrix{Num}:
682682 x₁ˏ₃ x₁ˏ₄ x₁ˏ₅ x₁ˏ₆
694694Create a variable with the given name along with subscripted indices with the
695695`symtype=T`. When `T=FnType`, it creates a symbolic function.
696696
697- ```julia-repl
697+ ```jldoctest
698698julia> Symbolics.variable(:x, 4, 2, 0)
699699x₄ˏ₂ˏ₀
700700
0 commit comments