Skip to content

Commit

Permalink
fixup! refactor: add new *_symbols methods, corresponding singletons,…
Browse files Browse the repository at this point in the history
… update tests
  • Loading branch information
AayushSabharwal committed Dec 27, 2023
1 parent 8818979 commit 492fb01
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/src/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ sol[x]
```

This also works for arrays or tuples of variables, including observed quantities and
independent variables:
independent variables, and for interpolating solutions:
```@example Usage
sol[[x, y]]
```
Expand All @@ -55,6 +55,18 @@ sol[[x, y]]
sol[(t, w)]
```

```@example Usage
sol(1.3, idxs=x)
```

```@example Usage
sol(1.3, idxs=[x, w]) # cannot use tuples of variables for interpolation
```

```@example Usage
sol(1.3, idxs=[:y, :z])
```

If necessary, `Symbol`s can be used to refer to variables. This is only valid for
symbolic variables for which [`hasname`](@ref) returns `true`. The `Symbol` used must
match the one returned by [`getname`](@ref) for the variable.
Expand Down

0 comments on commit 492fb01

Please sign in to comment.