Skip to content

Commit

Permalink
Merge pull request #688 from JuliaSymbolics/ChrisRackauckas-patch-1
Browse files Browse the repository at this point in the history
Fix the first tutorial...
  • Loading branch information
ChrisRackauckas authored Aug 6, 2022
2 parents 3636339 + ef065bf commit da72404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/tutorials/symbolic_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ new functions. For example, let's register a new function `h`:

```julia
h(x, y) = x^2 + y
@register h(x, y)
@register_symbolic h(x, y)
```

Now when we use `h(x, y)`, it is a symbolic expression and doesn't expand:
Expand Down Expand Up @@ -500,4 +500,4 @@ rows, cols, _ = findnz(sj)
out = sparse(rows, cols, zeros(length(cols)), size(sj)...) # pre-allocate, and correct structure
myf = eval(last(f_expr))
myf(out, rand(N)) # note that out matches the sparsity structure of sj
```
```

0 comments on commit da72404

Please sign in to comment.