Message Boards Message Boards

0
|
3914 Views
|
5 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Why does NDSolve return input with no error?

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],
 S[0]==399753.,EE[0]==1000,I0[0]==230.799,
I1[0]==11.4638,I2[0]==1.92257,I3[0]==1.28089,
I4[0]==1.33272,RR[0]==0},{S[t],EE[t],I0[t],I1[t],I2[t],I3[t],I4[t],RR[t]},{t,0,180}]
5 Replies
Posted 4 years 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 https://www.wolframcloud.com/objects/b3m2a1/LetMeMathematicaThatForYou.html

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.

<shift>+<enter>

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

Do you see eight interpolating functions?

POSTED BY: Bill Nelson

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

ok

POSTED BY: Shenghui Yang
Posted 4 years 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.

POSTED BY: Bill Nelson

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.

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