Skip to main content
1-Visitor
January 8, 2015
Question

Insufficient Initial Conditions

  • January 8, 2015
  • 5 replies
  • 1661 views

In this work sheet I get an error message that there are insufficient initial conditions. Can you help? Thanks, Richard

5 replies

19-Tanzanite
January 8, 2015

Two problems. Your syntax was wrong for odesolve, and it does not like the function FF. I think you will have to use two solve blocks and determine afterwards which solution to use depending on your conditions.

Werner_E
25-Diamond I
January 8, 2015

Richard already pointed out the wrong syntax (its different for system of equations as opposed to a single ODE) and that MC does not like the function FF, as you pass the functions you want to solve for as arguments.

Nevertheless you may pass the function values instead of the functions themselves which makes it work.

1.png

19-Tanzanite
January 8, 2015

Nevertheless you may pass the function values instead of the function itself to make it work.

I didn't even think to try that. In fact, I would argue that it should not work. If the function has function names as arguments, then passing it values should throw an error.

Werner_E
25-Diamond I
January 8, 2015

Richard Jackson wrote:

Nevertheless you may pass the function values instead of the function itself to make it work.

I didn't even think to try that. In fact, I would argue that it should not work. If the function has function names as arguments, then passing it values should throw an error.

Of course I had to change the function FF, too, so the arguments are scalars now 🙂

The argument "t" is obsolete now, I just forgot to delete it.

0.png