import java.util.*; //*********************************************************************************** //* Class for Van der Pohl ODE */ //*********************************************************************************** public class VanDerPohlFunction extends OdesFunction { private static final double Pi2=2*Math.PI; /** the default value of the initial value of x */ VanDerPohlFunction(int n) { super(n); x0=new double[n]; x0[0]=0.; x0[1]=0.2; x0[2]=0.1; x0[3]=0.5; dt=0.2; trans=100.; ghostTime=100.; poincareSection=3.14; title="Van Der Pohl Oscillator"; nParameters=3; aDefault=new double[nParameters]; aDefault[0]=0.32; aDefault[1]=0.2; aDefault[2]=1.05; a=new double[nParameters]; wrapZ=true; wrapZValue=Pi2; } //*********************************************************************************** /** Sets the eqiation paramters * @param paramters the array of input paramters */ //*********************************************************************************** public void setParameters(double[] parameters) { for(int i=0; i