Skip to content

Commit b70714d

Browse files
docs: add docstrings for detime_dvs and retime_dvs
1 parent 35a06a4 commit b70714d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/utils.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ end
1111

1212
get_iv(D::Differential) = D.x
1313

14+
"""
15+
$(TYPEDSIGNATURES)
1416
17+
Turn `x(t)` into `x`
18+
"""
1519
function detime_dvs(op)
1620
if !iscall(op)
1721
op
@@ -23,6 +27,11 @@ function detime_dvs(op)
2327
end
2428
end
2529

30+
"""
31+
$(TYPEDSIGNATURES)
32+
33+
Reverse `detime_dvs` for the given `dvs` using independent variable `iv`.
34+
"""
2635
function retime_dvs(op, dvs, iv)
2736
issym(op) && return Sym{FnType{Tuple{symtype(iv)}, Real}}(nameof(op))(iv)
2837
iscall(op) ?

0 commit comments

Comments
 (0)