sage.rings.padics.precision_error.PrecisionError: p-adic factorization not well-defined since the discriminant is zero up to the requestion p-adic precision
this works fine over the rationals:
[[[ R.<x>=QQ[]f=x^2g=gcd(f,f.derivative())(f/g).factor() ]]]I'm not well versed in p-adics, is this impossible or just not implemented?
What is the difficulty in factoring polynomials with multiple roots over the p-adic ring?[[[ R.<x>=Qp(5)[]f=x^2g=gcd(f,f.derivative())(f/g).factor() ]]]returns the following error:sage.rings.padics.precision_error.PrecisionError: p-adic factorization not well-defined since the discriminant is zero up to the requestion p-adic precision
The problem is that this issue also occurs forR.<x>=Qp(5)[]f=x^2f.factor(), I was trying to fiddle with it and accidently copied the wrong code
--
You received this message because you are subscribed to the Google Groups "sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
To post to this group, send email to sage-...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.
There is no problem with reducible polynomials, only with non-squarefree polynomials. The correct statement is:
If your actual polynomial lies in the squarefree locus, it is possible to increase precision enough so that a ball around it lies entirely within the squarefree locus. But if the actual polynomial is not squarefree, any ball will intersect the squarefree locus.
No, it's not, the trailing coefficient is O(5^20):
sage: R.<x> = Qp(5)[]
sage: f = x^2
sage: parent(f[0])
5-adic Field with capped relative precision 20