[sage-devel] Re: coeffs() & coefficients()

2014-11-27 Thread Francis Clarke
o me that as a general principle, a method whose name is an *abbreviation* of the name of another method should actually be the *same* method. Anything else is hugely confusing to a user. Both the functionalities described are, of course, useful, but giving them such similar names has a

[sage-devel] Re: Characteristic polynomials with bad degrees

2014-04-11 Thread Francis Clarke
Looks like a linbox problem: sage: J = jordan_block(0, 31).change_ring(QQ) sage: (J^2).charpoly(algorithm='generic') x^31 sage: (J^2).charpoly(algorithm='linbox') # the default x^16 -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe f

Re: [sage-devel] Smith Normal Form Integers Mod 2 TypeError: submatrix() takes exactly 4 positional arguments(2 given

2014-02-19 Thread Francis Clarke
This (slightly fixed) output from sage -grep shows what needs to be done: $ sage -grep -n 'def submatrix' sage/matrix/matrix1.pyx:1810:def submatrix(self, Py_ssize_t row=0, Py_ssize_t col=0, Py_ssize_t nrows=-1, Py_ssize_t ncols=-1): sage/

[sage-devel] Re: Composition of ring homomorphisms

2013-05-04 Thread Francis Clarke
' to the call. > I think this is correct. Similarly omitting unnecessary checks gives rise to significant improvements in speed at http://trac.sagemath.org/sage_trac/ticket/10843 (still waiting for review after two years). Francis Clarke -- You received this message because you are

[sage-devel] Re: Vector space sum very slow

2012-11-08 Thread Francis Clarke
I think you want sage: V.direct_sum(W) Vector space of degree 200 and dimension 2 over Rational Field Basis matrix: 2 x 200 dense matrix over Rational Field Francis -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post to this group, send em

Re: [sage-devel] Re: OS X 10.7 testers needed

2012-04-08 Thread Francis Clarke
l tests passed! Total time for all tests: 7.0 seconds Francis Clarke -- To post to this group, send an email to sage-devel@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

[sage-devel] Re: Free module equality, Hermite form over PIDs

2011-07-07 Thread Francis Clarke
On Jul 7, 8:55 am, Francis Clarke wrote: > Hermite Normal Forms (HNFs) exist for matrices over Bezout > rings and are unique up to multiplication by units over PIDs. Correction: they're unique modulo units over Euclidean domains. Francis -- To post to this group, send an email to

[sage-devel] Re: Free module equality, Hermite form over PIDs

2011-07-07 Thread Francis Clarke
On Jul 6, 9:45 am, John Cremona wrote: > I think it is too much to expect general PIDs to have unique > (canonical) echelon forms, since that would, as a special case, mean a > canonical generator for each principal ideal.  Of course there are > PIDs (such as Z) where there is a natural choice, b

[sage-devel] Re: Base ring(s) for free module morphisms

2011-06-30 Thread Francis Clarke
On Jun 30, 2:26 am, Rob Beezer wrote: > sage: V = GF(3)^3 > sage: W = QQ^2 > sage: H = Hom(V, W) > sage: m = matrix(3, 2, range(6)) > sage: f = H(m) This makes no sense at all; the function is not a homomorphism: sage: v = [V.random_element() for i in range(2)] sage: l = [GF(3).random_element

[sage-devel] Re: 0^0

2009-10-22 Thread Francis Clarke
The following article has interesting remarks on this question, particularly pages 407--408: \bib{MR1163629}{article}{ author={Knuth, Donald E.}, title={Two notes on notation}, journal={Amer. Math. Monthly}, volume={99}, date={1992}, number={5}, pages={403--422}, } Among the

[sage-devel] Re: Question about typeset in notebook

2008-05-13 Thread Francis Clarke
On May 13, 5:06 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > I really want to fix *every* single bug in the notebook that can be reliably > replicated (non-replicatable system-specific bugs are really hard to fix). > If you know of any please please report them.   A subtle problem with "%late

[sage-devel] Re: "evaluate" links in notebook

2008-03-04 Thread Francis Clarke
evaluate (and when it's a previously evaluated cell that you've edited, this can be hugely confusing), but most did. So I've set the delay at 250, and it's working well with both Firefox and Safari. My setup is Mac OS X 10.4.11 2 GHz Intel Core 2 Duo Sage 2.10.2 Fi

[sage-devel] trivial (and common) typo

2007-12-19 Thread Francis Clarke
--- a/sage/rings/number_field/number_field.py Sun Dec 16 06:37:16 2007 -0800 +++ b/sage/rings/number_field/number_field.py Wed Dec 19 18:54:54 2007 + @@ -751,7 +751,7 @@ class NumberField_generic(number_field_b You can also view a number field as having a different gener