Re: Solving Differential Equations with Vectors
- To: mathgroup at smc.vnet.net
- Subject: [mg83245] Re: Solving Differential Equations with Vectors
- From: Szabolcs Horvát <szhorvat at gmail.com>
- Date: Fri, 16 Nov 2007 05:22:46 -0500 (EST)
- References: <fhh7j2$8q0$1@smc.vnet.net>
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? > Try writing the vectors' components explicitly, like DSolve[{ Thread[{x'[t], y'[t]} == {5, y[t]}] }, {x[t], y[t]}, t] This is what Thread[] was used for above: In[9]:= Thread[{x'[t], y'[t]} == {5,y[t]}] Out[9]= {x'[t]==5, y'[t]==y[t]} -- Szabolcs