Group Abstract Group Abstract

Message Boards Message Boards

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

Using NDSolve in an Iteration

Hey Folks,

I have a question regarding the usage of NDSolve/ParametricNDSolve in an iteration. Probably I just struggle with the right formating of the code, but here is a simple idea of what I want to do:

In the first step, I want to solve a differential equation N'[t] with NDSolve which looks like this: (1)

d/dt N[t] = a* I[t]^6

(this is no problem at all and easily feasible) but then I want to use the result in the next step to modify I[t] and use it to solve the differential equation again: (2)

d/dt N[t] = a* (I[t] - b*N[t] (previous result) )^6.

and so on...

So my question is how to use it in an as simple as possible iteration without recursion to take place.

Maybe you guys could give me a simple example of how to properly use NDSolve in an iteration.

Thanks in advance!

Thomas

POSTED BY: Thomas Winkler
POSTED BY: W. Craig Carter
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard