Graphs of fast-slow systems

Given a dynamical system \(f \colon M \to M\), we consider a skew product \[ \begin{cases} s_{n+1} = \varphi(s_n, x_n, \varepsilon), \\ x_{n+1} = f(x_n). \end{cases} \] with \(x_0\) and \(s_0\) given. Here \(\varphi\) is an \(\mathbb{R}^2\)-valued function. We fix \(n \in \mathbb{N}\) and \(\varepsilon = \varepsilon(n) > 0\), and plot two dimensional càdlàg paths \(S(t) = s_{\lfloor n t \rfloor}\) on \(0 ≤ t ≤ 1\).

Take a look at the preset maps in the form below. Most peculiar, probably, is the collision map for a billiard with a flat cusp.



f(x):
x0:
s0:
φ(s, x, eps):
n:
\(\varepsilon\):
p:
Preset:

Use javascript. There are a few preprogrammed functions:

We use hammer.js and Chart.js.