fsolve and complex solution?
Mostrar comentarios más antiguos
Hello,
my test function is f=x^2+1 the slution is easy : x1=i orx2=-i (both are imaginary)
fsolve is not finding these values...why? fsolve returns 0 for a solution??
Thank you.
4 comentarios
Walter Roberson
el 18 de Jun. de 2012
Please show your test code?
John Miller
el 18 de Jun. de 2012
Walter Roberson
el 18 de Jun. de 2012
And you are not getting any warning message about it not being able to solve the problem?
I take it you overlooked this line in the documentation:
"fsolve only handles real variables. When x has complex variables, the variables must be split into real and imaginary parts."
John Miller
el 18 de Jun. de 2012
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Function Creation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!