Message Boards Message Boards

0
|
10313 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Three coupled sets of equations

This is not working.. Can anyone point out the mistakess in this code? Please..

sol = NDsolve[{x'[t] == 1*^-9 (10 - 180 y[t] - 342 z[t] - 50000 x[t]),
    y'[t] == (1.5*^-6) x[t], z'[t] == (6.3*^-8) x[t], x[0] == 7.5*^-5,
    y[0] == 0, z[0] == 0}, {x, y, z}, {t, 0, 50}]

Sure. This works:

sol = NDSolve[{x'[t] == 1^-9 (10 - 180 y[t] - 342 z[t] - 50000 x[t]), y'[t] == (1.5^-6) x[t], z'[t] == (6.3^-8) x[t], x[0] == 7.5^-5, 
y[0] == 0., z[0] == 0.}, {x[t], y[t], z[t]}, {t, 0, 50}]

You had typed NDsolve instead of NDSolve. The way you typed it the "function" was blue, when you type it right it goes "black".

Cheers, Marco

POSTED BY: Marco Thiel
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