complex solutions in ode23s

2 visualizaciones (últimos 30 días)
WANYI ZHANG
WANYI ZHANG el 24 de Abr. de 2019
Respondida: Torsten el 24 de Abr. de 2019
Hi,
Can anyone tell me what situation ode23s sover will give complex solutions?
I am solving diffrential equations that have connection to series functions.
Because my solution for odes23s, x is supposed to be just double numbers,however, mine is giving
complex double x solutions. I'm trying to fix the problems, but I cannot immagine what could be resulting the complex solutions.
Thanks a lot in advance

Respuesta aceptada

Torsten
Torsten el 24 de Abr. de 2019
I guess there exist some operation in the calculation of your time derivatives that gives a complex result (e.g. sqrt of a negative number, logarithm of a negative number, x^a where x is negative ...)

Más respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by