[sage-devel] Re: _fast_float_ for symbolic equalities/inequalities

2008-04-03 Thread Robert Bradshaw
On Apr 2, 2008, at 10:32 PM, Jason Grout wrote: Robert Bradshaw wrote: On Apr 2, 2008, at 12:05 PM, Jason Grout wrote: Robert Bradshaw wrote: Thanks. I put a comment up on trac, but it boils down to sage: f = (x == 1) sage: g = (1 == x) sage: bool(f+g) True sage: ff =

[sage-devel] Re: _fast_float_ for symbolic equalities/inequalities

2008-04-03 Thread Jason Grout
Robert Bradshaw wrote: On Apr 2, 2008, at 12:05 PM, Jason Grout wrote: Robert Bradshaw wrote: Thanks. I put a comment up on trac, but it boils down to sage: f = (x == 1) sage: g = (1 == x) sage: bool(f+g) True sage: ff = f._fast_float_('x') + g._fast_float_('x') sage: ff(0) 0.0

[sage-devel] Re: _fast_float_ for symbolic equalities/inequalities

2008-04-03 Thread Robert Bradshaw
On Apr 2, 2008, at 11:46 PM, Jason Grout wrote: Robert Bradshaw wrote: On Apr 2, 2008, at 12:05 PM, Jason Grout wrote: Robert Bradshaw wrote: Thanks. I put a comment up on trac, but it boils down to sage: f = (x == 1) sage: g = (1 == x) sage: bool(f+g) True sage: ff =

[sage-devel] 2.11 64-bit Linux version errors and warnings

2008-04-03 Thread janwil
Hi all, I just downloaded the last stable 2.11 package to my 64-bit Arch Linux box and tried to run ./sage. The resulting log is as follows: $ ./sage -- | SAGE Version 2.11, Release Date: 2008-03-30| |

[sage-devel] Re: eigenvalues and eigenvectors for matrices

2008-04-03 Thread David Joyner
On Thu, Apr 3, 2008 at 6:38 AM, Jason Grout [EMAIL PROTECTED] wrote: Currently, depending on the matrix type, there are several different ways to get eigenvalues and eigenvectors and it is hard to remember which function goes with which type. How about we unify the interface?

[sage-devel] eigenvalues and eigenvectors for matrices

2008-04-03 Thread Jason Grout
Currently, depending on the matrix type, there are several different ways to get eigenvalues and eigenvectors and it is hard to remember which function goes with which type. How about we unify the interface? Proposal: eigenspaces: Return a list of tuples, the first element being an

[sage-devel] Re: Cell splitting/merging in notebook

2008-04-03 Thread Nathan Dunfield
One feature that would be really nice is to have distinct text cells, in html or even better latex mode.  A text cell could created by a hot key (say cntrl-t) in edit mode which displays the source latex or html, then toggled out of edit mode to display the formatted text.  This could be

[sage-devel] your opinions about 0.digits()

2008-04-03 Thread vgermrk
Hi! I want to hear your opinions about a little problem. The following bug is already reported as #2232: 1.digits(16,'0123456789abcdef') returns ['1'] but 0.digits(16,'0123456789abcdef') returns [] (and not ['0'] as i wish) So i started looking at the code to fix this little problem. But it

[sage-devel] Re: Cell splitting/merging in notebook

2008-04-03 Thread bill purvis
On Thursday 03 April 2008, Andrey Novoseltsev wrote: How about Ctrl+s split at the current line and Ctrl+m merge with the previous one? (Or next one, I am not sure which one is more natural.) I'd go for the next one. Seems more intuitive, but I have a warped sense of humour Surely ctrl+m

[sage-devel] Re: your opinions about 0.digits()

2008-04-03 Thread David Harvey
On Apr 3, 2008, at 10:05 AM, Joel B. Mohler wrote: I intentionally made 0.digits() return [] because that seems to me the most consistent mathematical thing to do. +1 david --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-devel] Re: eigenvalues and eigenvectors for matrices

2008-04-03 Thread Justin C. Walker
On Apr 3, 2008, at 03:38 , Jason Grout wrote: Currently, depending on the matrix type, there are several different ways to get eigenvalues and eigenvectors and it is hard to remember which function goes with which type. How about we unify the interface? Proposal: eigenspaces: Return a

[sage-devel] Bug Day 11

2008-04-03 Thread mabshoff
Hello folks, it has been a while since Bug Day 10. We also had two Doc Days and two Sage Days since then, so that somewhat explains while there has been relatively activity in this direction. But before anybody can announce another Doc Day I would suggest doing Bug Day 11 on April 5th. The usual

[sage-devel] Re: your opinions about 0.digits()

2008-04-03 Thread Joel B. Mohler
On Thursday 03 April 2008 10:37, Alex Ghitza wrote: Note that at the moment 0.digits() does (2) and 0.ndigits() does (1), which is really bad. Yes, this is very bad. I was not aware of the ndigits convention until after the digits patch I wrote was included. On this topic, we also need a

[sage-devel] Re: eigenvalues and eigenvectors for matrices

2008-04-03 Thread Alex Ghitza
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William Stein wrote: | On Thu, Apr 3, 2008 at 7:27 AM, Justin C. Walker [EMAIL PROTECTED] wrote: | | On Apr 3, 2008, at 03:38 , Jason Grout wrote: | | Currently, depending on the matrix type, there are several different | ways to get

[sage-devel] Re: eigenvalues and eigenvectors for matrices

2008-04-03 Thread William Stein
On Thu, Apr 3, 2008 at 7:27 AM, Justin C. Walker [EMAIL PROTECTED] wrote: On Apr 3, 2008, at 03:38 , Jason Grout wrote: Currently, depending on the matrix type, there are several different ways to get eigenvalues and eigenvectors and it is hard to remember which function goes with

[sage-devel] Re: eigenvalues and eigenvectors for matrices

2008-04-03 Thread Justin C. Walker
On Apr 3, 2008, at 07:52 , Alex Ghitza wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William Stein wrote: | On Thu, Apr 3, 2008 at 7:27 AM, Justin C. Walker [EMAIL PROTECTED] wrote: | | On Apr 3, 2008, at 03:38 , Jason Grout wrote: [snip] | I don't see the need, and I'm

[sage-devel] Re: Cell splitting/merging in notebook

2008-04-03 Thread boothby
I've played with this some -- ctrl-s is frequently the shortcut to save -- in most browsers, to save the current webpage do disk. What do people think of ctrl-enter to split, and ctrl-backspace to join with previous? On Thu, 3 Apr 2008, bill purvis wrote: On Thursday 03 April 2008, Andrey

[sage-devel] Re: eigenvalues and eigenvectors for matrices

2008-04-03 Thread John Cremona
What about including the eigenvalue multiplicities as well? John On 03/04/2008, Justin C. Walker [EMAIL PROTECTED] wrote: On Apr 3, 2008, at 07:52 , Alex Ghitza wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 William Stein wrote: | On Thu, Apr 3, 2008 at 7:27 AM,

[sage-devel] Re: sage lite

2008-04-03 Thread Ondrej Certik
Hi, On Tue, Apr 1, 2008 at 7:21 PM, Gary Furnish [EMAIL PROTECTED] wrote: Maybe. I see two real issues. 1) Sage right now has really bad global namespace pollution issues that make it very hard to import just one or two files. I don't see why this shouldn't be fixable, it just needs

[sage-devel] Re: your opinions about 0.digits()

2008-04-03 Thread Carl Witty
On Apr 3, 7:37 am, Alex Ghitza [EMAIL PROTECTED] wrote: I guess this is a question of convention, and depends on how you think of digit: (1) a digit is a symbol used to construct representations of numbers, and so the base 10 digits are: 0, 1, ..., 9. In this case, 0.ndigits() should

[sage-devel] Re: eigenvalues and eigenvectors for matrices

2008-04-03 Thread Nick Alexander
I don't see the need, and I'm always leery of overpopulating the namespace :-} You already have the functionality, and with '?', it is easily accessible. I don't always support synonyms but I do want all those little helper functions. The point is to make it easy to read code --

[sage-devel] Re: eigenvalues and eigenvectors for matrices

2008-04-03 Thread Robert Bradshaw
On Apr 3, 2008, at 3:38 AM, Jason Grout wrote: Currently, depending on the matrix type, there are several different ways to get eigenvalues and eigenvectors and it is hard to remember which function goes with which type. How about we unify the interface? +1 This has bothered me too.

[sage-devel] Do I need Expect to invoke Sage from a *python* script?

2008-04-03 Thread [EMAIL PROTECTED]
I saw the example that used Expect to invoke Sage from an external program. Is Expect necessary from Python scripts too? Can I just import some sage modules and then call some functions from Python? Chris --~--~-~--~~~---~--~~ To post to this group, send email

[sage-devel] Re: Do I need Expect to invoke Sage from a *python* script?

2008-04-03 Thread Timothy Clemans
You have to use the Python install included with Sage which has everything you need. So write your script and then do sage -python blah.py On Thu, Apr 3, 2008 at 11:35 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I saw the example that used Expect to invoke Sage from an external program.

[sage-devel] #2653 still unresolved?

2008-04-03 Thread John Cremona
The patch at #2653 whias was merged for 2.11 was supposed to fix this: {{{ sage: k.a = GF(5^5) sage: E = EllipticCurve(k,[2,4]) sage: M = E.cardinality(); M 3227 sage: type(M) type 'sage.rings.rational.Rational' }}} I'm sure I can fix this, but should I reopen that ticket or open a new one?

[sage-devel] Re: your opinions about 0.digits()

2008-04-03 Thread John Cremona
We have to regard 0 as a special case, I don't think there's any point in pretending otherwise. If all leading zeros were stripped off in all cases then the string representing 0 would be the empty string, and obviously that would be silly. I went to see what the degree of the 0 polynomial is

[sage-devel] Re: Cell splitting/merging in notebook

2008-04-03 Thread Andrey Novoseltsev
I'm fine with these, but actually any fast way will work for me. On Apr 3, 9:17 am, [EMAIL PROTECTED] wrote: What do people think of ctrl-enter to split, and ctrl-backspace to join with previous? --~--~-~--~~~---~--~~ To post to this group, send email to

[sage-devel] Re: your opinions about 0.digits()

2008-04-03 Thread Joel B. Mohler
On Thursday 03 April 2008 15:14, John Cremona wrote: We have to regard 0 as a special case, I don't think there's any point in pretending otherwise.  If all leading zeros were stripped off in all cases then the string representing 0 would be the empty string, and obviously that would be

[sage-devel] Re: Do I need Expect to invoke Sage from a *python* script?

2008-04-03 Thread [EMAIL PROTECTED]
On Apr 3, 11:39 am, Timothy Clemans [EMAIL PROTECTED] wrote: So write your script and then do sage -python blah.py Timothy Thanks. My specific python script is a full blown python web app/ server that I want to invoke Sage on behalf of various brower clients. By doing your idea...sage

[sage-devel] Re: Do I need Expect to invoke Sage from a *python* script?

2008-04-03 Thread Robert Bradshaw
On Apr 3, 2008, at 12:36 PM, [EMAIL PROTECTED] wrote: On Apr 3, 11:39 am, Timothy Clemans [EMAIL PROTECTED] wrote: So write your script and then do sage -python blah.py Timothy Thanks. My specific python script is a full blown python web app/ server that I want to invoke Sage on behalf

[sage-devel] Re: your opinions about 0.digits()

2008-04-03 Thread John Cremona
That seem reasonable to me. If users expected the number of digits to always equal the length of the string representation, then what about negative integers? Of course we could restrict the ndigits() function to positive integers only... John On 03/04/2008, Joel B. Mohler [EMAIL PROTECTED]

[sage-devel] Re: #2653 still unresolved?

2008-04-03 Thread mabshoff
On Apr 3, 9:20 pm, John Cremona [EMAIL PROTECTED] wrote: The patch at #2653 whias was merged for 2.11 was supposed to fix this: {{{ sage: k.a = GF(5^5) sage: E = EllipticCurve(k,[2,4]) sage:  M = E.cardinality(); M 3227 sage: type(M) type 'sage.rings.rational.Rational' }}} I'm sure

[sage-devel] Re: your opinions about 0.digits()

2008-04-03 Thread William Stein
On Thu, Apr 3, 2008 at 12:14 PM, John Cremona [EMAIL PROTECTED] wrote: We have to regard 0 as a special case, I don't think there's any point in pretending otherwise. If all leading zeros were stripped off in all cases then the string representing 0 would be the empty string, and

[sage-devel] Re: #2653 still unresolved?

2008-04-03 Thread John Cremona
OK, fine. In any case the fix was to make some changes to sage.schemes.elliptic_curves.ell_finite_field.py in code I wrote (and I have added some doctests to match) rather than in the quadratic order code which was fixed in #2653. John On 03/04/2008, mabshoff [EMAIL PROTECTED] wrote: On

[sage-devel] Re: your opinions about 0.digits()

2008-04-03 Thread John Cremona
Fine -- clearly a sensible choice at the time, and I would not dream of changing that now! John On 03/04/2008, William Stein [EMAIL PROTECTED] wrote: On Thu, Apr 3, 2008 at 12:14 PM, John Cremona [EMAIL PROTECTED] wrote: We have to regard 0 as a special case, I don't think there's any

[sage-devel] Re: eigenvalues and eigenvectors for matrices

2008-04-03 Thread Justin C. Walker
On Apr 3, 2008, at 11:22 AM, Nick Alexander wrote: I don't see the need, and I'm always leery of overpopulating the namespace :-} You already have the functionality, and with '?', it is easily accessible. I don't always support synonyms but I do want all those little helper functions.

[sage-devel] book on sage

2008-04-03 Thread William Stein
Hi, I'm just starting to write a book on Sage for an undergrad course. It's supposed to have a narrative and personal feel, much more so than the tutorial or other books. I guess it's a little like Sage for newbies except (1) aimed at senior undergrads with a programming background, and (2)

[sage-devel] Re: book on sage

2008-04-03 Thread Hector Villafuerte
On Thu, Apr 3, 2008 at 7:24 PM, William Stein [EMAIL PROTECTED] wrote: Hi, I'm just starting to write a book on Sage for an undergrad course. It's supposed to have a narrative and personal feel, much more so than the tutorial or other books. I guess it's a little like Sage for