complex solutions in ode23s

조회 수: 2 (최근 30일)
WANYI ZHANG
WANYI ZHANG 2019년 4월 24일
답변: Torsten 2019년 4월 24일
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

채택된 답변

Torsten
Torsten 2019년 4월 24일
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 ...)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by