# HG changeset patch
# User Leif Leonhardy <not.really@online.de>
# Date 1317158881 7200
# Node ID 3edcf35ed80d616a4ebc5e4f865c194bda5a6564
# Parent 211fd1e76e5a28003b9c28e620a1633b36fd1ac2
#7852 Reviewer patch: Adjust threshold for noisy zero terms for MacOS X 10.6 x86_64 / GCC 4.2.1 in one case.
diff git a/sage/rings/polynomial/polynomial_element.pyx b/sage/rings/polynomial/polynomial_element.pyx
a

b


1035  1035  0.0319636125...*x^3  0.0383269759...*x^2  0.0463050900...*x + 0.346479687... 
1036  1036  sage: poly = f*g % m 
1037  1037  sage: # Remove noisy zero terms: 
1038   sage: parent(poly)([ 0.0 if abs(c)<=1e15 else c for c in poly.coeffs() ]) 
 1038  sage: parent(poly)([ 0.0 if abs(c)<=2.5e15 else c for c in poly.coeffs() ]) 
1039  1039  1.0 
1040  1040  
1041  1041  ALGORITHM: Solve the system as + mt = 1, returning s as the inverse 