The Conley-Morse Graphs Software
m_vpol.h
Go to the documentation of this file.
1/////////////////////////////////////////////////////////////////////////////
2///
3/// @file m_vpol.h
4///
5/// The time-t map for the Vanderpol equations.
6/// This map defines a sample time-t map for an ODE.
7///
8/// @author Pawel Pilarczyk
9///
10/////////////////////////////////////////////////////////////////////////////
11
12// Copyright (C) 1997-2014 by Pawel Pilarczyk.
13//
14// This file is part of my research software package. This is free software:
15// you can redistribute it and/or modify it under the terms of the GNU
16// General Public License as published by the Free Software Foundation,
17// either version 3 of the License, or (at your option) any later version.
18//
19// This software is distributed in the hope that it will be useful,
20// but WITHOUT ANY WARRANTY; without even the implied warranty of
21// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22// GNU General Public License for more details.
23//
24// You should have received a copy of the GNU General Public License
25// along with this software; see the file "license.txt". If not,
26// please, see <https://www.gnu.org/licenses/>.
27
28// Started on October 20, 2008. Last revision: February 11, 2012.
29
30
31#ifndef _CMGRAPHS_VANDERPL_H_
32#define _CMGRAPHS_VANDERPL_H_
33
34
35// include local header files
36#include "maptype.h"
37#include "odetimet.h"
38
39
40// --------------------------------------------------
41// ------------ the Vanderpol time-t map ------------
42// --------------------------------------------------
43
44/// This class defines the time-t map for the Vanderpol equations.
46{
47public:
48 /// The constructor of a Vanderpol map object.
49 MapVanderPol ();
50
51}; /* class MapVanderPol */
52
53// --------------------------------------------------
54
56#ifdef REVERSED_TIME
57// [Vanderpol equations with reversed time:]
58 MapOdeTimeT ("par:pa;var:x,y;"
59 "fun:-y+(x*((x*x)-pa)),x;", 3, 0.001, 10)
60#else
61// [Vanderpol equations:]
62 MapOdeTimeT ("par:pa;var:x,y;"
63 "fun:y-(x*((x*x)-pa)),-x;", 3, 0.001, 10)
64#endif
65{
66 return;
67} /* MapVanderPol::MapVanderPol */
68
69
70#endif // _CMGRAPHS_VANDERPL_H_
71
This class defines a map for the nonlinear density dependent overcompensatory Leslie population model...
Definition: odetimet.h:82
This class defines the time-t map for the Vanderpol equations.
Definition: m_vpol.h:46
MapVanderPol()
The constructor of a Vanderpol map object.
Definition: m_vpol.h:55
An abstract map type.
A generic method for computing a time-t map for ODEs.