# NDSolve Problems with Cardiovascular Modeling [duplicate]

This question is an exact duplicate of:

I am trying to use 27 simultaneous differential equations to model the cardiovascular system. I have the following code, however, the output isn't giving interpolating functions, but rather another rearrangement in terms of NDSolve. Can anyone help me?

## marked as duplicate by Sjoerd C. de Vries, C. E., Michael E2, J. M. will be back soon♦Jun 18 '15 at 23:39

This question was marked as an exact duplicate of an existing question.

• Please, don't ask a new question -- you can edit your old one. And also don't use images -- post properly formatted code. – Sektor Jun 18 '15 at 19:56
• Ok. However, I do not know how to fix or edit the code, and format it properly. – Rama Jun 18 '15 at 19:58
• I see that you are using square brackets as parentheses. Square brackets should only be used for function calls. If you are starting programming in a new programming language you're supposed to read up a bit about basic syntax, you should not be guessing it. – Sjoerd C. de Vries Jun 18 '15 at 20:11
• In the upper right corner of the question edit box there is a help button, marked with a question mark. – Sjoerd C. de Vries Jun 18 '15 at 20:18
• You also use curly brackets as parenthesis. Again, you cannot use arbitrary symbols as you like in a programming language. They may have a predefined function other than what you think they have. – Sjoerd C. de Vries Jun 18 '15 at 20:21

It would help a lot if you write each of the equations separately and name them appropriately; e.g. eq1, eq2, eq3... etc. Then you can use NDSolve routine to try and solve the system (along with the boundary/initial conditions).
Also, try formatting your code properly so that the stack-exchange community can help you more easily. From a quick view of the picture above, it seems that Mathematica does not recognize as equations those arguments that you have. Try avoiding the use of subscripts (you can type f0 instead of $f_0$). Always use parentheses instead of arbitrary symbols (curly brackets etc.), as Sjoerd C. de Vries correctly pointed out in his comment.