Message Boards Message Boards


Why does NDSolve return input with no error?

Posted 2 months ago
5 Replies
2 Total Likes

When I run the following NDSolve command, Mathematica 12.0 just spits back my input as its output, with no error messages. Why is it failing to execute? I have been all over the syntax, but can find nothing wrong.

    NDSolve[{S'[t]==-10,EE'[t]==-10,I0'[t]==2-0.167122 I0[t],
I1'[t]==2-0.0714286 I1[t],I2'[t]==2-0.1 I2[t],I3'[t]==2-0.1 I3[t],
I4'[t]==2-0.0892857 I4[t],RR'[t]==0.167122 I0[t]+0.0714286 I1[t]+0.1 I2[t]+0.1 I3[t],
5 Replies
Posted 2 months ago

It works for me with no changes. Have you tried turning the computer off and back on again? Really.

If that does make it work then that may mean that you previously assigned some value to some symbol and didn't realize that Mathematica was remembering that assignment.

Same as Nelson, copy and paste the code into a notebook just works.


Sadly does not work for me.enter image description here

$Version gives "12.0.0 for Microsoft Windows (64-bit) (April 6, 2019)"

And I did reboot the computer immediately prior.

Posted 2 months ago

Your latest screenshot looks like it has curly braces on the right side of IO'[t]=={...} and on the right side of RR'[t]=={...} and those really worry me. I do not see those curly braces in the code that you pasted in your first post. Curly braces in Mathematica define lists and are completely different from parens.

Let's try a quick experiment.

Scrape your code from your first post into your clipboard.

Open a second fresh empty browser window.

Go to

Patiently wait for that to initialize until you see the "Type your..." appear.

Below that in the large white empty space give it one left mouse click and wait a few seconds for it to initialize

Paste your code.

Patiently wait, perhaps half a minute for that to appear.


Patiently wait, perhaps half a minute for something to appear.

Do you see eight interpolating functions?

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract