But this is a rather fragile concept: see
http://whww.sagenb.org/home/pub/4840 http://www.sagenb.org/home/pub/4840If you can't, expand f below as x^2-2*x+1 then try perturbing the +1 term, e.g. +1+10^(-20).
What you really need in the approximate square-free decomposition of f: see, e.g.
Chin,P., Corless,R.M. & Corliss,G.F.,
Optimization Strategies for Floating-Point GCD.
Proc. ISSAC '98 (ed. O.Gloor), ACM, New York, 1998, pp. 228-235.
Nagasaka,K.,
Approximate polynomial GCD over integers.
J. Symbolic Comp. 46(2011) pp. 1306-1317.