next up previous contents
Next: Auxiliary Functions Up: Defining Dynamical Systems Using Previous: Periodic Variables   Contents


Initial Conditions and Default Ranges

Initial conditions for the parameters and variables and their default ranges may be declared using the INITIAL and RANGE commands. These specify specific initial values for the parameters and variables and the default ranges for display purposes. Any or all of the parameters and variables may be specified in either case. We look at Duffing's equation, for example:

# The Duffing oscillator (duffing.def)
x' = y
y' = - alpha y + (beta - x^2) x + gamma cos(omega t)
t' = 1

INITIAL alpha 0.5 beta 0 gamma 10 omega 1
        x -5 y 4 t 0
RANGE x -6 6 y -6 6

Note that in this example, we explicitly augment the phase space with the variable t (else the parser will think t is a parameter). When initial conditions or ranges are not specified, the default values as given in Table 3.1 are used.



2008-05-14