Re: Solving Differential Equations with Vectors
- To: mathgroup at smc.vnet.net
- Subject: [mg83269] Re: Solving Differential Equations with Vectors
- From: Bill Rowe <readnewsciv at sbcglobal.net>
- Date: Fri, 16 Nov 2007 05:36:53 -0500 (EST)
On 11/15/07 at 5:33 AM, 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? Use a pure function and Map, i.e. In[5]:= DSolve[{x[t] == #}, {x[t]}, t] & /@ {5, 0} Out[5]= {{{x[t] -> 5}}, {{x[t] -> 0}}} Note, the problem as you posted defines x[t] to be a constant value and says nothing about the derivative. That makes me wonder if you really meant In[6]:= DSolve[{x'[t] == #}, {x[t]}, t] & /@ {5, 0} Out[6]= {{{x[t] -> 5 t + C[1]}}, {{x[t] -> C[1]}}} -- To reply via email subtract one hundred and four