16.04.23 17:32 Polynom - příklad -- Sage https://sage.math.muni.cz/home/j.zelinka/14/print 1/1 Polynom - příklad var('x')          x R = PolynomialRing(QQ, x)          p0=x^3 + x^2 + 2*x + 2 p0.parent()          Symbolic Ring p0 in R          True p0.is_irreducible()          Traceback (click to the left of this block for traceback) ... AttributeError: 'sage.symbolic.expression.Expression' object has no attribute 'is_irreducible' p0.factor()          (x^2 + 2)*(x + 1) p1=R(x^3 + x^2 + 2*x + 2) p1.parent()          Univariate Polynomial Ring in x over Rational Field p1.is_irreducible()          False p1.factor()          (x + 1) * (x^2 + 2)