MATLAB: Irreducibility test

irreducibility checkirreduciblepolynomials

Hi all,
I would like to ask you, about the function irreducible.. http://www.mathworks.com/help/toolbox/mupad/stdlib/irreducible.html
I want to check if a polynomial is irreducible, but I have problem on how to declare the polynomial..I tried the examples o the abov link but matlab returns " ??? Undefined function or variable 'x'."..

Best Answer

syms x
evalin(symengine, 'irreducible', x^2 - 2)