       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:= DSolve[{x[t] == #}, {x[t]}, t] & /@ {5, 0}

Out= {{{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:= DSolve[{x'[t] == #}, {x[t]}, t] & /@ {5, 0}

Out= {{{x[t] -> 5 t + C}}, {{x[t] -> C}}}
--
To reply via email subtract one hundred and four

```

• Prev by Date: Re: Multiple Constants
• Next by Date: Re: mathematica and Cplex
• Previous by thread: Re: Solving Differential Equations with Vectors
• Next by thread: Re: Solving Differential Equations with Vectors