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

조회 수: 2 (최근 30일)
Atom
Atom 2013년 4월 15일
댓글: Joel Mathew 2016년 9월 19일
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?

답변 (1개)

Matt J
Matt J 2013년 4월 15일
편집: Matt J 2013년 4월 15일
Why not just use ROOTS?
>> roots([1 0 4 -7])
ans =
-0.6277 + 2.2764i
-0.6277 - 2.2764i
1.2554
  댓글 수: 5
Matt J
Matt J 2013년 4월 15일
OK, then
sol=roots([1 0 4 -7]);
sol=sol(imag(sol)==0 & sol>=0);
Joel Mathew
Joel Mathew 2016년 9월 19일
Thank you this worked for me

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by