how to include additional 'outputs' in NDSolve ?
- To: mathgroup at smc.vnet.net
- Subject: [mg6723] how to include additional 'outputs' in NDSolve ?
- From: calvitti at papaya.ces.cwru.edu
- Date: Sat, 12 Apr 1997 02:16:10 -0400 (EDT)
- Organization: Case Western Reserve University
- Sender: owner-wri-mathgroup at wolfram.com
is it possible to define a vector field function inside which static variables are updated when integrated with NDSolve? for example: if i would like the kinetic energy of a pendulum, i'd like to track kineticEnergy[t] = Sqr[y[t]]/2 so that while NDSolve is integrating x''[t] == -x[t] - y[t] it's also updating kineticEnergy[t]. is this possible? obviously, it can be done offline after the system is already integrated, but i need kineticEnergy online as an input to another set of differencial equations. thanks for the info, +---------------------------------+ | Alan Calvitti | | Control Engineering | | Case Western Reserve University | +---------------------------------+