Fwd: [sage-devel] Re: [sage-combinat-devel] factorization in polynomial rings
-- Forwarded message -- From: Simon King Date: Tue, May 18, 2010 at 7:22 AM Subject: [sage-devel] Re: [sage-combinat-devel] factorization in polynomial rings To: sage-devel Hi Anne! On May 18, 7:47 am, Anne Schilling wrote: > sage: LD.=LaurentPolynomialRing(QQ) > sage: P=PolynomialRing(LD,'z',2) Sage tries to use Singular to factor your polynomial. Hence, it needs to convert both your polynomial and its ring to Singular. The problem is that your coefficients are Laurent Polynomials, but Singular can only do the fraction field of the Laurent polynomial ring. So, you can do: sage: LD.=LaurentPolynomialRing(QQ) sage: P=PolynomialRing(Frac(LD),'z',2) sage: z = P.gens() sage: f = z[0]**2-d**2*z[1]**2 sage: f.factor() (-z0 + (-d)*z1) * (-z0 + d*z1) Best regards, Simon -- To post to this group, send an email to sage-de...@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-de...@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
Re: [sage-combinat-devel] factorization in polynomial rings
Nicolas M. Thiery wrote: On Mon, May 17, 2010 at 11:47:07PM -0700, Anne Schilling wrote: I am not sure whether to post this to sage-combinat-devel or rather sage-devel (perhaps someone could forward if appropriate): I just forwarded it to sage-devel. My colleague Craig Tracy would like to work in a polynomial ring over a ring of Laurent polynomials in some variable d. Is it possible to use factor? The following code gives an error message. Thanks. Does anyone have an answer? Anne -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-de...@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
Re: [sage-combinat-devel] Queue does not apply to sage-4.4.2
Hi! Strange, for me the failure already happens earlier: applying trac_8747-testsuite-speedup-fh.patch applying trac_8887-typo_monoid_prod-fh.patch applying trac_8913-cayley_graph_twosided_labels-nt.patch applying trac_8930-enumerated_set_deprecate-fh.patch patching file sage/categories/enumerated_sets.py Hunk #2 FAILED at 190 1 out of 11 hunks FAILED -- saving rejects to file sage/categories/enumerated_sets.py.rej patch failed, unable to continue (try -v) patch failed, rejects left in working dir errors during apply, please fix and refresh trac_8930-enumerated_set_deprecate-fh.patch Abort Cheers, Anne Jason Bandlow wrote: Hello, I get the following error: applying trac_8882-freemod_interface_cleanup-fix-nt.patch patching file sage/combinat/free_module.py Hunk #1 FAILED at 819 1 out of 1 hunks FAILED -- saving rejects to file sage/combinat/free_module.py.rej patch failed, unable to continue (try -v) patch failed, rejects left in working dir errors during apply, please fix and refresh trac_8882-freemod_interface_cleanup-fix-nt.patch Abort As a quick fix I disabled this patch and everything else seems to work. Let me know if I should guard it and push. Cheers, Jason -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-de...@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.
[sage-combinat-devel] Queue does not apply to sage-4.4.2
Hello, I get the following error: applying trac_8882-freemod_interface_cleanup-fix-nt.patch patching file sage/combinat/free_module.py Hunk #1 FAILED at 819 1 out of 1 hunks FAILED -- saving rejects to file sage/combinat/free_module.py.rej patch failed, unable to continue (try -v) patch failed, rejects left in working dir errors during apply, please fix and refresh trac_8882-freemod_interface_cleanup-fix-nt.patch Abort As a quick fix I disabled this patch and everything else seems to work. Let me know if I should guard it and push. Cheers, Jason -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-de...@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.