Factorization - MATLAB factor
https://www.mathworks.com/help/symbolic/factor.htmlFactor an expression without specifying the factorization mode. By default, factor uses factorization over rational numbers. In this mode, factor keeps rational numbers in their exact symbolic form. syms x factor (x^3 + 2, x) ans = x^3 + 2 Factor the same expression, but this time use numeric factorization over real numbers.
Factorization - MATLAB factor
www.mathworks.com › help › symbolicF = factor (x) returns all irreducible factors of x in vector F . If x is an integer, factor returns the prime factorization of x. If x is a symbolic expression, factor returns the subexpressions that are factors of x. example. F = factor (x,vars) returns an array of factors F, where vars specifies the variables of interest.