![]() | Here is an interactive session:
>>> from simviz_f77 import * >>> A=1; w=4*math.pi # change parameters >>> setprm() # send parameters to oscillator code >>> run(60) # run 60 steps and plot solution >>> w=math.pi # change frequency >>> setprm() # update prms in oscillator code >>> rewind(30) # rewind 30 steps >>> run(120) # run 120 steps and plot >>> A=10; setprm() >>> rewind() # rewind to t=0 >>> run(400) |