Everything I said about vectorizing pdesolve needs saying for odesolve also. Vectorization will make it easier to code and easier for our colleagues to read and understand. The help file for ode solve shows how to use the routine to solve for f and g. We need for f and g to be vectors. Note that we still need to keep f and g as separate vector functions, not combined into one vector. By keeping them separate, the variable names are more meaningful to the reader.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.