[sage-devel] Re: [sage-support] Re: 3 == pi

2008-05-15 Thread boothby
On Thu, 15 May 2008, William Stein wrote: > > On Thu, May 15, 2008 at 10:42 PM, John H Palmieri > <[EMAIL PROTECTED]> wrote: >> >> >> >> On May 15, 9:56 pm, "William Stein" <[EMAIL PROTECTED]> wrote: >>> On Thu, May 15, 2008 at 9:48 PM, John H Palmieri <[EMAIL PROTECTED]> wrote: >>> >>> >>> >>

[sage-devel] Re: 3 == pi

2008-05-15 Thread John H Palmieri
On May 15, 10:57 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On Thu, May 15, 2008 at 10:42 PM, John H Palmieri > > > > <[EMAIL PROTECTED]> wrote: > > > On May 15, 9:56 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > >> On Thu, May 15, 2008 at 9:48 PM, John H Palmieri <[EMAIL PROTECTED]> wr

[sage-devel] Re: [sage-support] Re: 3 == pi

2008-05-15 Thread William Stein
On Thu, May 15, 2008 at 10:42 PM, John H Palmieri <[EMAIL PROTECTED]> wrote: > > > > On May 15, 9:56 pm, "William Stein" <[EMAIL PROTECTED]> wrote: >> On Thu, May 15, 2008 at 9:48 PM, John H Palmieri <[EMAIL PROTECTED]> wrote: >> >> >> >> > Is this a bug? >> >> > sage: 3 == pi >> > 3 == pi >> > sa

[sage-devel] Re: sage math

2008-05-15 Thread Jason Grout
William Stein wrote: > Hi Sage-Devel, > > I just noticed that if you type "sage math" into google (no quotes) > then you get us first (of course), > but you also get links to Download, Tutorial, Screen shots, > Documentation, etc., all below. That's > something I think we have *not* had before,

[sage-devel] sage math

2008-05-15 Thread William Stein
Hi Sage-Devel, I just noticed that if you type "sage math" into google (no quotes) then you get us first (of course), but you also get links to Download, Tutorial, Screen shots, Documentation, etc., all below. That's something I think we have *not* had before, and something we've wondered how to

[sage-devel] Re: polytope classes and organization

2008-05-15 Thread mhampton
I thought I would publicly state my own plans on this front, and some recent developments. Polymake is undergoing some architectural changes that may or may not make it more attractive for inclusion in sage. Their developers estimate the new release as sometime in the summer, maybe as early as J

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread Bill Hart
I think it might just be possible to get down to the speed of Magma with a highly optimised classical multiplication routine. At 3600X3600 one clearly has to do 3600x3600 scalar products of a row by a column. We'll assume one of the matrices has been transposed to facilitate this. If we use SSE2

[sage-devel] Re: porting

2008-05-15 Thread Michael Abshoff
On May 16, 1:50 am, "William Stein" <[EMAIL PROTECTED]> wrote: > Hi Michael (cc: sage-devel and bcc: some sponsors), Feel free to forward since there is no BCC in Google groups ;) > What's the quick status on: > > * OS X 64-bit porting Cleaning up patches. One crash issue related to libSingular

[sage-devel] porting

2008-05-15 Thread William Stein
Hi Michael (cc: sage-devel and bcc: some sponsors), What's the quick status on: * OS X 64-bit porting * Cygwin porting * MSVC porting * Solaris porting * Itanium porting I want to jump into something (and maybe get others to), but I don't know which to do. Frankly, I think that now t

[sage-devel] Re: square roots of -1 in finite fields

2008-05-15 Thread William Stein
On Thu, May 15, 2008 at 4:23 PM, David Joyner <[EMAIL PROTECTED]> wrote: > > I'm not disagreeing but want to point out one difference. > RR is an ordered field and this fact is used to differentiate between > i and -i. However, a finite field such as GF(5) is not, so there is > some ambiguity to i

[sage-devel] Re: square roots of -1 in finite fields

2008-05-15 Thread William Stein
On Thu, May 15, 2008 at 4:00 PM, John H Palmieri <[EMAIL PROTECTED]> wrote: > > The fact that i is not in CC doesn't bother me too much, since i is a > "formal square root of -1": > > sage: i in CC > False > > I can force it to be in CC by doing this: > > sage: CC(i) > 1.00*I > > B

[sage-devel] Re: square roots of -1 in finite fields

2008-05-15 Thread David Joyner
I'm not disagreeing but want to point out one difference. RR is an ordered field and this fact is used to differentiate between i and -i. However, a finite field such as GF(5) is not, so there is some ambiguity to i. It seems to me that this should be resolved somehow. On Thu, May 15, 2008 at 7:0

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread William Stein
On Thu, May 15, 2008 at 4:04 PM, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > > On May 15, 2008, at 8:21 AM, Bjake Hammersholt Roune wrote: > >>> [...] people are confused that when >>> they create a matrix with matrix(3, range(9)), for example, that the >>> echelon_form is not the rref output tha

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread Robert Bradshaw
On May 15, 2008, at 8:21 AM, Bjake Hammersholt Roune wrote: >> [...] people are confused that when >> they create a matrix with matrix(3, range(9)), for example, that the >> echelon_form is not the rref output that they get from most any other >> program they have ever used [...] >> What do peopl

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread Martin Albrecht
On Thursday 15 May 2008, Bill Hart wrote: > Here is the graph of Magma times: > > http://sage.math.washington.edu/home/wbhart/flint-trunk/graphing/gf2.png > > The crossover is not clear. The change from a smooth curve to a > squiggly line is about 3600. So presumably that is it, but the graph > al

[sage-devel] square roots of -1 in finite fields

2008-05-15 Thread John H Palmieri
The fact that i is not in CC doesn't bother me too much, since i is a "formal square root of -1": sage: i in CC False I can force it to be in CC by doing this: sage: CC(i) 1.00*I But then I think I should be able to do this: sage: GF(5)(i) Someone who knows more number

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread Bill Hart
Here is the graph of Magma times: http://sage.math.washington.edu/home/wbhart/flint-trunk/graphing/gf2.png The crossover is not clear. The change from a smooth curve to a squiggly line is about 3600. So presumably that is it, but the graph also seems to change character at about 6200 or 7000 as

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread Bjake Hammersholt Roune
> >> What do people think about making the default ring for matrices QQ? > > > I have no objections to making QQ the defailt ring for matrices. > > I do. That's definitely *not* the proposal. The proposal is to make the > base ring the fraction field of the canonical ring in which the list of >

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread Bill Hart
Oh, actually I have no idea where Magma's crossover is. I'll wager it is somewhere between 4000x4000 and 6000x6000, but let's not speculate. I'll try and work it out with some timings. Bill. On 15 May, 22:23, Martin Albrecht <[EMAIL PROTECTED]> wrote: > On Thursday 15 May 2008, Bill Hart wrote:

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread Martin Albrecht
On Thursday 15 May 2008, Bill Hart wrote: > Martin, > > Do you think Magma uses naive multiplication for its base case? This > can be ridicoulously fast, especially over GF2. I note for example > that Magma's base case is about 6 times faster than M4RI at 1000x1000. > Is it possible that the naive

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread Bill Hart
Martin, Do you think Magma uses naive multiplication for its base case? This can be ridicoulously fast, especially over GF2. I note for example that Magma's base case is about 6 times faster than M4RI at 1000x1000. Is it possible that the naive multiplication can just be optimised with a far bett

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread Jason Grout
Nils Bruin wrote: > -1. While I agree that defaulting to matrices over QQ rather than over > ZZ would lead to more expected behaviour for most users, I don't see > how the rule for changing the base ring can be made both consistent > and cheap. > > Imagine R1 = QQ[x,y]/(x^2+y^2-1). Then FieldOfFr

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread David Roe
I agree with Nick here. If we want to change the default behavior of some functions so that they work the same as over the fraction field, that's fine. But don't add a call to fraction field to the constructor. ZZ is the initial object in the category of rings. That's a good reason for it to be

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread Martin Albrecht
On Thursday 15 May 2008, Bill Hart wrote: > Hi Martin, > > Here is a run that illustrates the problem. Am I doing something > wrong? No, I was stupid. The cpucycles are printed as %u but they should be printed as %llu since they are longer than an int. I've attached the fixed C file (since it is

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread Bill Hart
Hi Martin, Here is a run that illustrates the problem. Am I doing something wrong? [EMAIL PROTECTED]:~/m4ri-20080514/testsuite> time ./ bench_multiplication 5000 2048 n: 5000, cutoff: 2048, cpu cycles: 2670143764 real0m2.768s user0m2.760s sys 0m0.008s [EMAIL PROTECTED]:~/m4ri-2008

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread Martin Albrecht
> > It'll run the experiment 17 times (17 for no particular reason) and > > return the median runtime. -n is the size and -c the cutoff. > Median? Shouldn't you take the minimum? Are there any good papers > on benchmarking? I'm using cpucycles from: http://www.ecrypt.eu.org/ebats/cpucycles.ht

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread Nils Bruin
-1. While I agree that defaulting to matrices over QQ rather than over ZZ would lead to more expected behaviour for most users, I don't see how the rule for changing the base ring can be made both consistent and cheap. Imagine R1 = QQ[x,y]/(x^2+y^2-1). Then FieldOfFractions(R1) is well- defined,

[sage-devel] Re: Request for Sage at PyConUK

2008-05-15 Thread Martin Albrecht
I don't know my schedule for September yet but I consider to attend and I could also give a talk if there is interest. My impression is that I had trouble 'selling' Sage to an audience which cares more about say floating point numbers than GF(2) in the past but that can only improve. On the oth

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread William Stein
On Thu, May 15, 2008 at 10:42 AM, Martin Albrecht <[EMAIL PROTECTED]> wrote: > > On Thursday 15 May 2008, Bill Hart wrote: >> Hi Martin, >> >> The cycle counter in your bench code seems to give random values on >> the 2.4GHz Opteron with SUSE 9 linux that I have access to, which has >> Magma 2-14.

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread Martin Albrecht
On Thursday 15 May 2008, Bill Hart wrote: > Hi Martin, > > The cycle counter in your bench code seems to give random values on > the 2.4GHz Opteron with SUSE 9 linux that I have access to, which has > Magma 2-14.10 on it. > > Anyhow, here are the Magma times: > > A := RandomMatrix(GF(2),10^4,10^4)

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread Martin Albrecht
> Maybe you're doing something wrong? This bug is fixed in: http://sage.math.washington.edu/home/malb/spkgs/libm4ri-20080515.p0.spkg Cheers, Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.informatik.uni-bre

[sage-devel] Re: Sage (not fan mail) Fwd: used sage

2008-05-15 Thread David Joyner
On Thu, May 15, 2008 at 1:05 PM, <[EMAIL PROTECTED]> wrote: > > David, your wording implies that there was one leak. Robert Miller and I sat > down for an hour a day every day for about 2 weeks, and fixed a number of > leaks every time. We eventually lost steam, because we didn't make an > a

[sage-devel] Re: Sage (not fan mail) Fwd: used sage

2008-05-15 Thread boothby
David, your wording implies that there was one leak. Robert Miller and I sat down for an hour a day every day for about 2 weeks, and fixed a number of leaks every time. We eventually lost steam, because we didn't make an appreciable dent in the number of memory leaks. Rather than 'leak', Leo

[sage-devel] Re: Sage (not fan mail) Fwd: used sage

2008-05-15 Thread David Joyner
Agreed. It is too slow. Guava now (very recently) has C code which computes min dist very fast for binary and ternary codes (codes from graphs are binary, so this would apply). However, it has not yet been linked to in SAGE. Why? There was a period when Michael said that the Leon code was leaking

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread kcrisman
> I'm not sure I understand the problem.  Here is an example session in > Sage 3.0.1.  Can you change this to illustrate what you mean? > Sorry, Jason, the example was sort of buried in my post. Here is a concise version. sage: A=matrix(QQ,3,range(9)) sage: A [0 1 2] [3 4 5] [6 7 8] sage: A.r

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread Jason Grout
William Stein wrote: > On Thu, May 15, 2008 at 8:21 AM, Bjake Hammersholt Roune > <[EMAIL PROTECTED]> wrote: >>> [...] people are confused that when >>> they create a matrix with matrix(3, range(9)), for example, that the >>> echelon_form is not the rref output that they get from most any other >>

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread Jason Grout
Bjake Hammersholt Roune wrote: >> [...] people are confused that when >> they create a matrix with matrix(3, range(9)), for example, that the >> echelon_form is not the rref output that they get from most any other >> program they have ever used [...] >> What do people think about making the defau

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread William Stein
On Thu, May 15, 2008 at 9:04 AM, Nick Alexander <[EMAIL PROTECTED]> wrote: > >> What do people think about making the default ring for matrices QQ? > > I'm not certain why I dislike this so much, but I vote -1. I think > it's because I understand the Sage coercion model well and since I > know wh

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread Nick Alexander
> What do people think about making the default ring for matrices QQ? I'm not certain why I dislike this so much, but I vote -1. I think it's because I understand the Sage coercion model well and since I know what to expect, I appreciate my data starting at the "lowest level of the model".

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread Jason Grout
kcrisman wrote: > > > On May 15, 10:55 am, "William Stein" <[EMAIL PROTECTED]> wrote: >> On Thu, May 15, 2008 at 7:48 AM, Jason Grout >> >> >> >> <[EMAIL PROTECTED]> wrote: >> >>> Jason Grout wrote: Based on some conversations with linear algebra people and classroom demonstrations in

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread William Stein
On Thu, May 15, 2008 at 8:21 AM, Bjake Hammersholt Roune <[EMAIL PROTECTED]> wrote: > >> [...] people are confused that when >> they create a matrix with matrix(3, range(9)), for example, that the >> echelon_form is not the rref output that they get from most any other >> program they have ever us

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread William Stein
On Thu, May 15, 2008 at 8:16 AM, kcrisman <[EMAIL PROTECTED]> wrote: > > > > On May 15, 10:55 am, "William Stein" <[EMAIL PROTECTED]> wrote: >> On Thu, May 15, 2008 at 7:48 AM, Jason Grout >> >> >> >> <[EMAIL PROTECTED]> wrote: >> >> > Jason Grout wrote: >> >> Based on some conversations with line

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread William Stein
On Thu, May 15, 2008 at 8:15 AM, didier deshommes <[EMAIL PROTECTED]> wrote: > > On Thu, May 15, 2008 at 10:48 AM, Jason Grout > <[EMAIL PROTECTED]> wrote: >> More concisely, this proposal could be worded: >> >> What do people think of making matrix() return a matrix over a field by >> default,

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread Jason Grout
didier deshommes wrote: > On Thu, May 15, 2008 at 10:48 AM, Jason Grout > <[EMAIL PROTECTED]> wrote: >> More concisely, this proposal could be worded: >> >> What do people think of making matrix() return a matrix over a field by >> default, unless a ring is explicitly specified. The default fi

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread Bjake Hammersholt Roune
> [...] people are confused that when > they create a matrix with matrix(3, range(9)), for example, that the > echelon_form is not the rref output that they get from most any other > program they have ever used [...] > What do people think about making the default ring for matrices QQ? > I have no

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread kcrisman
On May 15, 10:55 am, "William Stein" <[EMAIL PROTECTED]> wrote: > On Thu, May 15, 2008 at 7:48 AM, Jason Grout > > > > <[EMAIL PROTECTED]> wrote: > > > Jason Grout wrote: > >> Based on some conversations with linear algebra people and classroom > >> demonstrations in a linear algebra class, peop

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread didier deshommes
On Thu, May 15, 2008 at 10:48 AM, Jason Grout <[EMAIL PROTECTED]> wrote: > More concisely, this proposal could be worded: > > What do people think of making matrix() return a matrix over a field by > default, unless a ring is explicitly specified. The default field would > either be the fract

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread Harald Schilly
On May 15, 4:20 pm, Jason Grout <[EMAIL PROTECTED]> wrote: > matrix(3, range(9)) would yield a matrix over QQ +1 many just use integers as cheap examples but in fact use them over QQ h --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegr

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread William Stein
On Thu, May 15, 2008 at 7:48 AM, Jason Grout <[EMAIL PROTECTED]> wrote: > > Jason Grout wrote: >> Based on some conversations with linear algebra people and classroom >> demonstrations in a linear algebra class, people are confused that when >> they create a matrix with matrix(3, range(9)), for ex

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread Jason Grout
Jason Grout wrote: > Based on some conversations with linear algebra people and classroom > demonstrations in a linear algebra class, people are confused that when > they create a matrix with matrix(3, range(9)), for example, that the > echelon_form is not the rref output that they get from mos

[sage-devel] Re: Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread mhampton
I think this is a good idea. -M. Hampton On May 15, 8:20 am, Jason Grout <[EMAIL PROTECTED]> wrote: > Based on some conversations with linear algebra people and classroom > demonstrations in a linear algebra class, people are confused that when > they create a matrix with matrix(3, range(9)), fo

[sage-devel] Change the default base_ring for matrices from ZZ to QQ

2008-05-15 Thread Jason Grout
Based on some conversations with linear algebra people and classroom demonstrations in a linear algebra class, people are confused that when they create a matrix with matrix(3, range(9)), for example, that the echelon_form is not the rref output that they get from most any other program they h

[sage-devel] Re: backslash in documentation?

2008-05-15 Thread William Stein
Hi Nick A., According to http://trac.sagemath.org/sage_trac/ticket/989 it looks like you introduced this "nodetex" stuff. Maybe you could look at the issue described below and open a trac ticket. -- william On Fri, May 9, 2008 at 12:01 PM, John H Palmieri <[EMAIL PROTECTED]> wrote: > >

[sage-devel] Sage (not fan mail) Fwd: used sage

2008-05-15 Thread William Stein
Hi David, Here is some "non-fan mail" about codes in Sage from Africa. Any comments? -- Forwarded message -- From: Khumbo Kumwenda <[EMAIL PROTECTED]> Date: Fri, May 9, 2008 at 12:24 PM Subject: used sage To: [EMAIL PROTECTED] Hello, I have used sage in an essay I am writing

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread Bill Hart
Hi Martin, The cycle counter in your bench code seems to give random values on the 2.4GHz Opteron with SUSE 9 linux that I have access to, which has Magma 2-14.10 on it. Anyhow, here are the Magma times: > A := RandomMatrix(GF(2),10^4,10^4); > B := RandomMatrix(GF(2),10^4,10^4); > t := Cputime(

[sage-devel] Request for Sage at PyConUK

2008-05-15 Thread David Jones
I've just started tinkering with Sage. So far it seems very promising. I have a request. Would anyone like to give a talk on Sage at PyCon UK 2008? It's in Birmingham on 2008-09-12 through to 2008-09-14. My connection with PyCon UK is that I spoke last year, am intending to speak this year, a

[sage-devel] Re: slightly OT: new M4RI library

2008-05-15 Thread Martin Albrecht
On Thursday 15 May 2008, William Stein wrote: > > Btw. I don't have access to Magma 2.14 which I believe to be the fastest > > in linear algebra over GF(2). In version 2.14 they added SSE2 support > > too. So if anybody could compare the new M4RI with Magma 2.14 I'd be > > happy to hear about the