Display the polynomial : f(x)-x^5+12.1x^4=40.59x^3-17.015x^2-1.95x+35.88, the calculate f(5)
조회 수: 1 (최근 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
채택된 답변
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)
y=subs(f,5)
댓글 수: 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!