MATLAB Answers

complex solutions in ode23s

3 views (last 30 days)
WANYI ZHANG
WANYI ZHANG on 24 Apr 2019
Answered: Torsten on 24 Apr 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

  0 Comments

Sign in to comment.

Accepted Answer

Torsten
Torsten on 24 Apr 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 ...)

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products


Release

R2019a