The simplify function is not completely simplifying my polynomials.

조회 수: 8 (최근 30일)
Grant
Grant 2023년 9월 26일
답변: Matt J 2023년 9월 26일
I am struggling to figure out why the simplify function will not completely simplify my polynomials.
(3x-4)(x^2 – 2x + 4) is what I am trying to simplify to (3x^3-10x^2+20x-16) but it just spits back out my original.
My code is below.
clear
clc
syms x
prob2 = ((3*x-4)*(x^2-2*x+4));
problem2 = simplify(prob2)
problem2 = 

답변 (1개)

Matt J
Matt J 2023년 9월 26일
syms x
prob2 = ((3*x-4)*(x^2-2*x+4));
problem2 = expand(prob2)
problem2 = 

카테고리

Help CenterFile Exchange에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by