Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.8K Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Interpret the results of solving a system of differential equations

Posted 5 years ago
POSTED BY: Niki Nikou
2 Replies
Posted 5 years ago

Thank you very much Gianluca

That helps me a lot!

POSTED BY: Niki Nikou

The easiest way to use the results is with NDSolveValue. You can give your favourite names to the solutions and use them as ordinary functions for calculation or plotting:

eqns = {y'[t] == -447.0 Exp[2.24 y[t]] y[t] + z[t], 
   z'[t] == (-z[t] + 20)/0.401, y[0] == 0, z[0] == 0};
{solX, solZ} = NDSolveValue[eqns, {y, z}, {t, 0., 100.}]
solX[3]
Plot[solZ[t], {t, 0, 40}, PlotRange -> All]
ParametricPlot[{solX[t], solZ[t] - 20}, {t, 0, 40}, AspectRatio -> 1]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard