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

3 ビュー (過去 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 Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by