![]() |
Previous | Next |
[x_out] = vanderpol_sim(
mu, xi, n_out, step)
x_1 (t)
and
x_2 (t)
to denote the oscillator position and velocity as a function of time.
The ordinary differential equation for the
Van der Pol oscillator with no noise satisfies the differential equation
\[
\begin{array}{rcl}
x_1 '(t) & = & x_2 (t)
\\
x_2 '(t) & = & \mu [ 1 - x_1(t)^2 ] x_2 (t) - x_1(t)
\end{array}
\]
\mu
is the
differential equation above.
x(t) \in \B{R}^2
.
To be specific,
x_1 (0)
is equal to
xi(1)
and
x_2(0)
is equal to
xi(2)
.
n_out
that
contains the approximation solution to the ODE.
To be specific, for
k = 1 , ... , n_out
,
x_out(i,k)
is an approximation for
x_i [ (k-1) \Delta t ]
.
step
is used
to approximate the solution of the ODE.
vanderpol_sim
.
It returns true, if the test passes, and false otherwise.