How to find a real positive root of a bi-quadratic equation

2 visualizaciones (últimos 30 días)
Atom
Atom el 15 de Abr. de 2013
Comentada: Joel Mathew el 19 de Sept. de 2016
Suppose a bi-quadratic equation x^4+4*x^2-7=0. How to find a positive real root of it.
solve(x^4+4*x^2-7=0, x, Real, Positive)
Is the above correct?
How to use fsolve here?

Respuestas (1)

Matt J
Matt J el 15 de Abr. de 2013
Editada: Matt J el 15 de Abr. de 2013
Why not just use ROOTS?
>> roots([1 0 4 -7])
ans =
-0.6277 + 2.2764i
-0.6277 - 2.2764i
1.2554
  5 comentarios
Matt J
Matt J el 15 de Abr. de 2013
OK, then
sol=roots([1 0 4 -7]);
sol=sol(imag(sol)==0 & sol>=0);
Joel Mathew
Joel Mathew el 19 de Sept. de 2016
Thank you this worked for me

Iniciar sesión para comentar.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by