Is it possible that ode23 or ode45 could result in complex numbers instead of real ones? If Yes, what are the possible reasons for getting complex numbers once you would expect real ones?
35 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi, I perfromed ode23 for solving a differential equation, but after some timesteps I started to get complex numbers (i.e. the imaginary part) as result, instead of real numbers. Based on my equations/calculations, I should always get real numbers, and I do not understand if/why those solvers could give imaginary numbers.
Therefore, Is it possible that ode23 or ode45 could result in complex numbers instead of real ones?
If Yes, what are the possible reasons for getting complex numbers once you would expect real ones?
More info on the ODE here:
Thanks a lot!
13 comentarios
John D'Errico
el 7 de Jul. de 2020
Sometimes when we don't know what the answer is, a group of people end up just making comments. Along the way, sometimes we might end up helping you, finding a solution as if by committee. If that worked, then great, you have a solution, and all is good in the world. What matters in the end is you have a solution to the problem.
Just watch out for those multiplying socks and hangars. :)
Respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!