Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Adding matrices for use in NDSolve input

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63316] Adding matrices for use in NDSolve input
  • From: Maarten <maarten at stack.nl>
  • Date: Fri, 23 Dec 2005 05:08:38 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,

I have the following problem. I'm trying to integrate a matrix equation of the form:

S'[t]=A.S[t]+B
S[t]=0 (n x m)

where A and B are symbolic matrices. B is of dimension n x m and I intend S[t] to also be of this dimension. However when I input this differential equation mathematica assumes S[t] is an n x 1 vector and replicates this vector match B for addition:

S'[t]={A.S[t],A.S[t],...,A.S[t]}+B

How can I specify my intended dimension of S[t] without makes variables for the individual elements of S[t]? I've tried playing around with hold to delay interpretation of the summation but prevents evaluation of A and B and I suspect the delay of summation will not help when NDSolve releases the hold. How can I get mathematica to interpret this equation in the way I intend?


  • Prev by Date: Re: Returning an empty sequence
  • Next by Date: Re: Returning an empty sequence
  • Previous by thread: Matrix differential equation in NDSolve
  • Next by thread: Moving an outsider to the closest point on the boundary