accelerInt  v0.1
dydt.c
Go to the documentation of this file.
1 
9 #include "header.h"
10 
11 #ifdef GENERATE_DOCS
12 //put this in the van der Pol namespace for documentation
13 namespace van_der_pol {
14 #endif
15 
22 void dydt (const double t, const double mu, const double * __restrict__ y, double * __restrict__ dy) {
23 
24  // y1' = y2
25  dy[0] = y[1];
26  // y2' = mu(1 - y1^2)y2 - y1
27  dy[1] = mu * (1 - y[0] * y[0]) * y[1] - y[0];
28 
29 } // end dydt
30 
31 
32 #ifdef GENERATE_DOCS
33 }
34 #endif
An example header file that defines system size and other required methods for integration of the van...
void dydt(const double t, const double mu, const double *__restrict__ y, double *__restrict__ dy)
An implementation of the RHS of the van der Pol equation.
Definition: dydt.c:22