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 22#22, we choose the interval [0,1] as the default range to display 21#21. For 10#10, we choose [0,25] as a default range. As initial parameter values, we choose 40#40, 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:

static 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   */



root
1998-11-02