<s> from PyDSTool import * <EOL> icdict = { '<STR_LIT:x>' : <NUM_LIT:0.1> } <EOL> pardict = { '<STR_LIT:a>' : <NUM_LIT> , '<STR_LIT:b>' : - <NUM_LIT:0.5> , '<STR_LIT:c>' : <NUM_LIT:0.> } <EOL> vardict = { '<STR_LIT:x>' : '<STR_LIT>' } <EOL> DSargs = args ( ) <EOL> DSargs . name = '<STR_LIT>' <EOL> DSargs . ics = icdict <EOL> DSargs . pars = pardict <EOL> DSargs . tdata = [ <NUM_LIT:0> , <NUM_LIT:10> ] <EOL> DSargs . varspecs = vardict <EOL> DSargs . algparams = { '<STR_LIT>' : <NUM_LIT> } <EOL> DS = Generator . Vode_ODEsystem ( DSargs ) <EOL> def test_a ( a ) : <EOL> DS . set ( pars = { '<STR_LIT:a>' : a } ) <EOL> traj = DS . compute ( '<STR_LIT>' ) <EOL> pts = traj . sample ( ) <EOL> return pts <EOL> for a in [ <NUM_LIT:0> , <NUM_LIT:1> , <NUM_LIT:2> , <NUM_LIT:3> , <NUM_LIT:4> , <NUM_LIT> , <NUM_LIT:5> , <NUM_LIT> ] : <EOL> pts = test_a ( a ) <EOL> plt . plot ( pts [ '<STR_LIT:t>' ] , pts [ '<STR_LIT:x>' ] , label = '<STR_LIT:x>' ) <EOL> plt . xlabel ( '<STR_LIT:t>' ) <EOL> plt . show ( ) </s>
