Skip to content

Commit 4f0753c

Browse files
author
fchen121
committed
Update docstring
1 parent 4efd06f commit 4f0753c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/systems/diffeqs/basic_transformations.jl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,26 @@ function fractional_to_ordinary(eqs, variables, alphas, epsilon, T; initials = 0
294294
return mtkcompile(sys)
295295
end
296296

297+
"""
298+
Generates the system of ODEs to find solution to FDEs.
299+
300+
Example:
301+
302+
```julia
303+
@independent_variables t
304+
@variables x_0(t)
305+
D = Differential(t)
306+
tspan = (0., 5000.)
307+
308+
function expect(t)
309+
return sqrt(2) * sin(t + pi/4)
310+
end
311+
312+
sys = linear_fractional_to_ordinary([3, 2.5, 2, 1, .5, 0], [1, 1, 1, 4, 1, 4], 6*cos(t), 10^-5, 5000; initials=[1, 1, -1])
313+
prob = ODEProblem(sys, [], tspan)
314+
sol = solve(prob, radau5(), abstol = 1e-5, reltol = 1e-5)
315+
```
316+
"""
297317
function linear_fractional_to_ordinary(degrees, coeffs, rhs, epsilon, T; initials = 0)
298318
@independent_variables t
299319
@variables x_0(t)

0 commit comments

Comments
 (0)