MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: populating a list from system of odes


var = Cases[ode, f_Symbol[t], Infinity] // Union


Bob Hanlon

In article <bvaq98$ah0$1 at smc.vnet.net>, sean_incali at yahoo.com (sean kim) wrote:

<< let's say you have a system of ode's like.. 

{
a'[t] == k7 - k5 a[t] + k2 ab[t] - k1 a[t] b[t],
ab'[t] == -k2 ab[t] + k1 a[t] b[t],
b'[t] == k8 + k2 ab[t] - k6 b[t] - k1 a[t] b[t],
c'[t] == k3 ab[t] - k4 c[t]
}

now what I want to do is get a list of the  variables in the system
without having to type them out.

so that I would get {a[t],ab[t], b[t], c[t]}


  • Prev by Date: Re: unpartition
  • Next by Date: Re: unpartition
  • Previous by thread: populating a list from system of odes
  • Next by thread: Re: populating a list from system of odes