MathGroup Archive 2008

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

Search the Archive

Re: For Loop and NDSolve

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85211] Re: For Loop and NDSolve
  • From: Szabolcs <szhorvat at gmail.com>
  • Date: Sat, 2 Feb 2008 03:26:43 -0500 (EST)
  • References: <fnuh4s$9ni$1@smc.vnet.net>

One more thing .... since that sparse array is diagonal you might try
using a vector instead, something like

f[x_?VectorQ] := {1, 2} x
NDSolve[{u'[t] == f[u[t]], u[0] == {0, 0}}, u, {t, 0, 1}]

This make make things better ... or worse ...


  • Prev by Date: Re: Mathematica And Cron
  • Next by Date: Re: changing color of non-evaluatable cell
  • Previous by thread: For Loop and NDSolve
  • Next by thread: Re: For Loop and NDSolve