Display the polynomial : f(x)-x^5+1​2.1x^4=40.​59x^3-17.0​15x^2-1.95​x+35.88, the calculate f(5)

1 回表示 (過去 30 日間)
Li Hui Chew
Li Hui Chew 2021 年 6 月 24 日
回答済み: KSSV 2021 年 6 月 24 日
syms x
f=coeff(x^5 - 12.1*x^4 = 40.59*x^3 - 17.015*x^2 -1.95*x + 35.88)
% do i need to use this function?
% or use print function?
% to calculate f(5)
x=[5];
y=polyval(f,x)

採用された回答

KSSV
KSSV 2021 年 6 月 24 日
syms x
f=(x^5 - 12.1*x^4 - 40.59*x^3 + 17.015*x^2 +1.95*x - 35.88)
f = 
y=subs(f,5)
y = 

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 6 月 24 日
syms x
f = sym2poly(x^5 - 12.1*x^4 + 40.59*x^3 - 17.015*x^2 -1.95*x + 35.88)
f = 1×6
1.0000 -12.1000 40.5900 -17.0150 -1.9500 35.8800

カテゴリ

Help Center および File ExchangeFormula Manipulation and Simplification についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by