Husk, (削除) 10 (削除ここまで) 9 bytes
-1 byte thanks to Zgarb
uSȯf¬`Bṁṡ
###Explanation
Explanation
ṁṡ Concatenate together the symmetric ranges of each coefficient
(It is guaranteed that the integer roots lie in the range [-n..n],
where n is the coefficient with the largest magnitude)
Sȯf Find all the values in that range which
¬ are zero
`B when plugged through the polynomial
(Base conversion acts as polynomial evaluation)
u De-duplicate the roots
Husk, (削除) 10 (削除ここまで) 9 bytes
-1 byte thanks to Zgarb
uSȯf¬`Bṁṡ
###Explanation
ṁṡ Concatenate together the symmetric ranges of each coefficient
(It is guaranteed that the integer roots lie in the range [-n..n],
where n is the coefficient with the largest magnitude)
Sȯf Find all the values in that range which
¬ are zero
`B when plugged through the polynomial
(Base conversion acts as polynomial evaluation)
u De-duplicate the roots
Husk, (削除) 10 (削除ここまで) 9 bytes
-1 byte thanks to Zgarb
uSȯf¬`Bṁṡ
Explanation
ṁṡ Concatenate together the symmetric ranges of each coefficient
(It is guaranteed that the integer roots lie in the range [-n..n],
where n is the coefficient with the largest magnitude)
Sȯf Find all the values in that range which
¬ are zero
`B when plugged through the polynomial
(Base conversion acts as polynomial evaluation)
u De-duplicate the roots
Husk, 10(削除) 10 (削除ここまで) 9 bytes
-1 byte thanks to Zgarb
Sȯf¬`Boṡ►auSȯf¬`Bṁṡ
###Explanation
ṁṡ ►a GetConcatenate together the symmetric ranges of each coefficient with the largest absolute value: n
oṡ(It is guaranteed that Getthe integer roots lie in the range [-n..n],
Sȯf where n is the coefficient with the largest magnitude)
Sȯf Find all the values in that range which
¬ ¬ are zero
`B `B when plugged through the polynomial
(Base conversion acts as polynomial evaluation)
u De-duplicate the roots
Husk, 10 bytes
Sȯf¬`Boṡ►a
###Explanation
►a Get the coefficient with the largest absolute value: n
oṡ Get the range [-n..n]
Sȯf Find all the values in that range which
¬ are zero
`B when plugged through the polynomial
(Base conversion acts as polynomial evaluation)
Husk, (削除) 10 (削除ここまで) 9 bytes
-1 byte thanks to Zgarb
uSȯf¬`Bṁṡ
###Explanation
ṁṡ Concatenate together the symmetric ranges of each coefficient (It is guaranteed that the integer roots lie in the range [-n..n],
where n is the coefficient with the largest magnitude)
Sȯf Find all the values in that range which
¬ are zero
`B when plugged through the polynomial
(Base conversion acts as polynomial evaluation)
u De-duplicate the roots
Husk, 10 bytes
Sȯf¬`Boṡ►a
###Explanation
►a Get the coefficient with the largest absolute value: n
oṡ Get the range [-n..n]
Sȯf Find all the values in that range which
¬ are zero
`B when plugged through the polynomial
(Base conversion acts as polynomial evaluation)