Message Boards Message Boards

0
|
6648 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Solve a Matrix differential equation?

Posted 6 years ago

I need to solve Milburn equation. But my code didn't work? what the problem ? H is a matrix in this code

DSolve[{p'[t] + r*p[t] == r*MatrixExp[-I*H/r]*p[t]*MatrixExp[I*H/r], p[0] == 0}, p[t], t]
POSTED BY: Reza Hamzeh
2 Replies
POSTED BY: Michael Rogers
Posted 6 years ago

thx . i changed code to this (i gave to r , H their values)

<pre>NDSolve[{p'[t] + r*p[t] == r*MatrixExp[-I*H/r].p[t].MatrixExp[I*H/r], 
  p[0] == H}, p[t], {t, 0, 10}]

and it gave me this error "NDSolve::deqn: Equation or list of equations expected instead of True in the first argument "

POSTED BY: Reza Hamzeh
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract