I am starting to use the Julia package Symbolics for symbolic Maths but I can not figure out how to factorize a polynomial.
I want to get the same as with SymPy.
using SymPy
@vars x
factor(x^2 + 2x + 1)
that returns
       2
(x + 1) 
            I am starting to use the Julia package Symbolics for symbolic Maths but I can not figure out how to factorize a polynomial.
I want to get the same as with SymPy.
using SymPy
@vars x
factor(x^2 + 2x + 1)
that returns
       2
(x + 1)