Display the polynomial : f(x)-x^5+12.1x^4=40.59x^3-17.015x^2-1.95x+35.88, the calculate f(5)
3 次查看(过去 30 天)
显示 更早的评论
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)
0 个评论
采纳的回答
更多回答(1 个)
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)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!