Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hello,
Currently I have been facing some errors to solve differential equations using AdamsBDF solver.
Your kind help or advice will be very much appreciated.
Please see the belwo images and attached file for equations and the problem with "D"_Red Circle.
Thank you.
Solved! Go to Solution.
When you defined D(t,X) you type a square bracket for the second entry and so you created inadvertently a 1x1 matrix .
Simply use 'normal' parentheses and its works:
BTW, there is no need to use a solve block when you use one of the stand alone ODE solvers. A solve block is needed only when you use 'odesolve'.
You may get a smoother result if you either increase N significantly or use a smaller interval [Ti; Tf], or both:
When you defined D(t,X) you type a square bracket for the second entry and so you created inadvertently a 1x1 matrix .
Simply use 'normal' parentheses and its works:
BTW, there is no need to use a solve block when you use one of the stand alone ODE solvers. A solve block is needed only when you use 'odesolve'.
You may get a smoother result if you either increase N significantly or use a smaller interval [Ti; Tf], or both:
In case you are interested, here is the system solved using a solve block with odesolve.
Prime 9 sheet attached