Skip to content

Commit 492fb01

Browse files
fixup! refactor: add new *_symbols methods, corresponding singletons, update tests
1 parent 8818979 commit 492fb01

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/src/usage.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ sol[x]
4646
```
4747

4848
This also works for arrays or tuples of variables, including observed quantities and
49-
independent variables:
49+
independent variables, and for interpolating solutions:
5050
```@example Usage
5151
sol[[x, y]]
5252
```
@@ -55,6 +55,18 @@ sol[[x, y]]
5555
sol[(t, w)]
5656
```
5757

58+
```@example Usage
59+
sol(1.3, idxs=x)
60+
```
61+
62+
```@example Usage
63+
sol(1.3, idxs=[x, w]) # cannot use tuples of variables for interpolation
64+
```
65+
66+
```@example Usage
67+
sol(1.3, idxs=[:y, :z])
68+
```
69+
5870
If necessary, `Symbol`s can be used to refer to variables. This is only valid for
5971
symbolic variables for which [`hasname`](@ref) returns `true`. The `Symbol` used must
6072
match the one returned by [`getname`](@ref) for the variable.

0 commit comments

Comments
 (0)