Group Abstract Group Abstract

Message Boards Message Boards

SIR model - Avoid NDSolve problem

Posted 6 years ago
POSTED BY: Rodrigo Cordeiro
2 Replies

You are right, i didn't know i need the ; after each assigment. It is now working. Thanks a lot.

POSTED BY: Rodrigo Cordeiro

Your code should work. Make sure you have ; after each assignment:

s0 = 0.09; i0 = 0.01; r0 = 0;
trans = 3.2; recov = 0.02;
tmax = 20;

ok

POSTED BY: Shenghui Yang
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard