Skip to content

Commit 24211f4

Browse files
Merge pull request #658 from anandijain/master
Macro-free docs extra parens removed
2 parents cd2a606 + deefd45 commit 24211f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/tutorials/symbolic_functions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,9 @@ the user's code. For these cases, ModelingToolkit.jl allows for fully
382382
macro-free usage. For example:
383383

384384
```julia
385-
x = Sym{Float64}(:x)()
386-
y = Sym{Float64}(:y)()
387-
x+y^2.0
385+
x = Num(Sym{Float64}(:x))
386+
y = Num(Sym{Float64}(:y))
387+
x+y^2.0 # isa Num
388388
```
389389

390390
Does what you'd expect. The reference documentation shows how to
@@ -395,7 +395,7 @@ If we need to use this to generate new Julia code, we can simply
395395
convert the output to an `Expr`:
396396

397397
```julia
398-
Expr(x+y^2)
398+
toexpr(x+y^2)
399399
```
400400

401401
## `Sym`s and callable `Sym`s

0 commit comments

Comments
 (0)