I'm trying to show both versions of a symbolic equation, one unfactorized and one factorized.
This example works as expected:
>> syms s
[ s + 1, s + 1]
However, it does nothing in this case:
s^2 + 4*s + 1
[ s + 0.2679, s + 3.7321 ]
>> roots([1 4 1])
Is it because the roots are not whole numbers? I.e. Does it only factorize if the factors are simple? Or am I doing something wrong?