Skip to content

Commit cceba61

Browse files
committed
add ε to FitzHugh parameters
1 parent 8df983e commit cceba61

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/continuous_famous_systems.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -741,19 +741,19 @@ function magnetic_pendulum(u = [sincos(rand()*2π)..., 0, 0];
741741
end
742742

743743
"""
744-
fitzhugh_nagumo(u = 0.5ones(2); I = 1.0)
744+
fitzhugh_nagumo(u = 0.5ones(2); I = 1.0, ε = 0.08)
745745
Famous excitable system which emulates the firing of a neuron, with equations
746746
```math
747747
\\begin{aligned}
748748
\\dot{v} &= v - v^3/3 - w + I \\\\
749-
\\ddot{y} &= 0.08(v + 0.7 - 0.8w)
749+
\\ddot{y} &= \\varepsilon(v + 0.7 - 0.8w)
750750
\\end{aligned}
751751
```
752752
753753
More details in the [Scholarpedia](http://www.scholarpedia.org/article/FitzHugh-Nagumo_model) entry.
754754
"""
755-
function fitzhugh_nagumo(u = 0.5ones(2); I = 1.0)
756-
ds = ContinuousDynamicalSystem(fitzhugh_nagumo_eom, u, [I])
755+
function fitzhugh_nagumo(u = 0.5ones(2); I = 1.0, ε = 0.08)
756+
ds = ContinuousDynamicalSystem(fitzhugh_nagumo_eom, u, [I, ε])
757757
end
758758
fitzhugh_nagumo_eom(u, p, t) =
759-
SVector(u[1] - u[1]^3/3 - u[2] + p[1], 0.08(u[1] + 0.7 - 0.8u[2]))
759+
@inbounds SVector(u[1] - u[1]^3/3 - u[2] + p[1], p[2]*(u[1] + 0.7 - 0.8u[2]))

0 commit comments

Comments
 (0)