I'm interested in the periods of limit cycles of the Wilson-Cowan equations which have the form $$x'(t) = -x + S(ax(t) - by(t) +e)$$ $$y'(t) = -y + S(cx(t) - dy(t) + f)$$
where $$S(x) = 1 + \frac{\tanh(\frac{x}{2})}{2}$$
You can observe a limit cycle with the parameters seen in the following code:
s[x_] := (1 + Tanh[x/2]/2);
a = 10;
b = 10;
c = 10;
d = -5;
e = -0.75;
f = -15;
wc = {-x + s[(a*x) - (b*y) + e], -y + s[(c*x) - (d*y) + f]};
T = 40;
point = {0.77, 0.29};
LimCyc = ParametricPlot[
Evaluate[
First[{x[t], y[t]} /.
NDSolve[{x'[t] == -x[t] + s[(a*x[t]) - (b*y[t]) + e],
y'[t] == -y[t] + s[(c*x[t]) - (d*y[t]) + f],
Thread[{x[0], y[0]} == point]}, {x, y}, {t, 0, T}]]], {t, 0,
T}, PlotStyle -> Red];
Show[StreamPlot[wc, {x, 0, 2}, {y, 0, 2}, PlotRangePadding -> 0,
ImageSize -> {500, 500}], LimCyc]
Is there an easy way to numerically compute the period of a limit cycle for a given set of parameters?
b
supposed to bed
in they'[t]
equation? In general, folks prefer if you add your code to the question. And, could you also provide a reference to these equations? $\endgroup$res = NDSolveValue[{x'[t] == -x[t] + s[(a*x[t]) - (b*y[t]) + e], y'[t] == -y[t] + s[(c*x[t]) - (d*y[t]) + f], Thread[{x[0], y[0]} == point]}, {x[t], y[t]}, {t, 0, T}]; Plot[res, {t, 0, T}]
(The plot is not actually needed, it's for illustration). $\endgroup$