change problem back to original ODE

This commit is contained in:
Krishna Vedala 2020-06-10 14:36:42 -04:00
parent 50ea49e58e
commit c5ce24d32c
No known key found for this signature in database
GPG Key ID: BA19ACF8FC8792F7
1 changed files with 3 additions and 6 deletions

View File

@ -57,12 +57,9 @@
*/
void problem(const double *x, double *y, double *dy)
{
// const double omega = 1.F; // some const for the problem
// dy[0] = y[1]; // x dot
// dy[1] = -omega * omega * y[0]; // y dot
const double mu = 2.0;
dy[0] = y[1];
dy[1] = mu * (1.f - y[0] * y[0]) * y[1] - y[0];
const double omega = 1.F; // some const for the problem
dy[0] = y[1]; // x dot
dy[1] = -omega * omega * y[0]; // y dot
}
/**