Skip to content

Commit 754a850

Browse files
committed
fixed breaking example
1 parent 1b7c1f7 commit 754a850

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

docs/src/man/CoupledSDEs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ For example, the
141141
Lyapunov spectrum of a `CoupledSDEs` in the absence of noise, here exemplified by the
142142
FitzHugh-Nagumo model, can be computed by typing:
143143

144-
```@example type
144+
```julia
145145
using CriticalTransitions
146146
using DynamicalSystems: lyapunovspectrum
147147

src/trajectories/simulation.jl

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,4 @@ function relax(sys::CoupledSDEs, T, init=current_state(sys);
4040
sde_prob = referrenced_sciml_prob(sys)
4141
prob = ODEProblem{isinplace(sde_prob)}(dynamic_rule(sys), init, (0, T), sys.p0)
4242
return solve(prob, alg; kwargs...)
43-
end;
44-
45-
46-
using CriticalTransitions
47-
48-
function fitzhugh_nagumo(u, p, t)
49-
x, y = u
50-
ϵ, β, α, γ, κ, I = p
51-
52-
dx = (-α * x^3 + γ * x - κ * y + I) / ϵ
53-
dy = -β * y + x
54-
55-
return SA[dx, dy]
56-
end
57-
58-
using DynamicalSystems
59-
sys = CoupledSDEs(fitzhugh_nagumo, id_func, zeros(2), [1.,3.,1.,1.,1.,0.], σ)
60-
ls = lyapunovspectrum(CoupledODEs(sys), 10000)
43+
end;

0 commit comments

Comments
 (0)