Deciding zero's to a polynomial function

2 ビュー (過去 30 日間)
Brian
Brian 2013 年 6 月 14 日
Hi, the question I have to answer is the following: "Decide all the zeros to the function : 0.1x^3 - 5x^2 –x +e^-x = -4, x>0"
I want to know how I can represent this function in matlab? I can't seem to input exp/e. Thanks.
Any help on finding the roots would also be appreciated. Thanks in advance!

回答 (1 件)

Roger Stafford
Roger Stafford 2013 年 6 月 14 日
Use 'fzero' and replace e^-x with exp(-x).
  2 件のコメント
Brian
Brian 2013 年 6 月 14 日
I'm confused about what to enter, I had this but I'm clearly doing something wrong.
y=[0.1*x.^3 +5*x.^2 -1*x exp(-x)]
fzero(y)
thanks
Brian
Brian 2013 年 6 月 15 日
I still can't get fzero to work :/ thanks for your help so far

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by