MathGroup Archive 2007

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

Search the Archive

Re: Solving Differential Equations with Vectors

  • To: mathgroup at smc.vnet.net
  • Subject: [mg83239] Re: Solving Differential Equations with Vectors
  • From: dh <dh at metrohm.ch>
  • Date: Fri, 16 Nov 2007 05:19:04 -0500 (EST)
  • References: <fhh7j2$8q0$1@smc.vnet.net>


Hi Ram,

you can write the equations in vector form, but you must unravel them 

before feeding to DSolve. Here is a simple example where unravelling is 

done with Thread and Flatten:

x[t_]={x1[t],x2[t]};

eq={x'[t]=={1,2},x[0]=={0,0}} ;

DSolve[Thread  /@ eq //Flatten,x[t],{t}]

hope this helps, Daniel



ram.rachum at gmail.com wrote:

> I'm working on simulations of physical systems, and I need to solve

> DEs that include vectors. But DSolve won't let me input equations with

> vectors! Here's an example:

> 

> DSolve[{x[t] == {5, 0}}, {x[t]}, t]

> 

> It generates Solve::eqf.

> 

> Anyone has any idea what to do?

> 

> Thanks,

> Ram.

> 

> 




  • Prev by Date: Re: memory release problem in mathematica6.0
  • Next by Date: Re: Solving Differential Equations with Vectors
  • Previous by thread: Solving Differential Equations with Vectors
  • Next by thread: Re: Solving Differential Equations with Vectors