Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: populating a list from system of odes

  • To: mathgroup at smc.vnet.net
  • Subject: [mg45944] Re: populating a list from system of odes
  • From: bobhanlon at aol.com (Bob Hanlon)
  • Date: Fri, 30 Jan 2004 04:16:23 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

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