next up previous contents
Next: Auxiliary Functions Up: Defining Labels and Initial Previous: Variables   Contents

Parameters

When examining bifurcations of our bouncing ball map, it is useful to graphically depict (a subset of) the parameter space. Since $0 < \alpha \leq 1$, we choose the interval $[0,1]$ as the default range to display $\alpha$. For $\gamma$, we choose $[0,25]$ as a default range. As initial parameter values, we choose $(\alpha, \gamma) = (0.8, 10)$, since the dynamics for these parameter values are fairly interesting.

To implement these choices, we edit a few more lines in bball_init() so that the code looks like:

int            n_param=2;                /* dim of parameter space          */
static char    *parameter_names[]={"alpha","gamma"}; /* list of param names */
static double  parameters[]={0.8,10.};   /* initial parameter values        */
static double  parameter_min[]={0.,0.};  /* default param min for display   */
static double  parameter_max[]={1.,25.}; /* default param max for display   */



2010-01-07