[sage-devel] Re: emacs, prompt and readline

2010-12-21 Thread Nick Alexander
Hi Francois, On Dec 21, 2:40 am, Francois Maltey fmal...@nerim.fr wrote: Hi, I use Sage in emacs in the shell buffer named *Sage-main*, in Inferior Sage Mode. I am the author and maintainer of sage-mode. I tried your examples on my emacs installation and I get precisely the opposite

[sage-devel] Re: Strategies for integrating new library into Sage notebook

2010-11-15 Thread Nick Alexander
However, I'd like to be able to intelligently detect when Sage is running in the notebook vs. interactively on the console and only auto-create PNG files in notebook mode.  Is there a standard technique for this? I think the following works. Try: sage: import sage.server.support sage:

[sage-devel] Re: Base Conversion

2010-11-11 Thread Nick Alexander
On Nov 11, 10:13 am, Eviatar eviatarb...@gmail.com wrote: Thank you, I wasn't aware of that functionality. However, I think my function is more convenient since you can directly convert bases, instead of using base 10 as an intermediary step. sage: ZZ(15).digits(2) [1, 1, 1, 1] sage:

[sage-devel] Re: Base Conversion

2010-11-11 Thread Nick Alexander
On Nov 11, 11:39 am, Eviatar eviatarb...@gmail.com wrote: Yes, but can you go directly from base 2 to base 4, for example? I guess this would work, ZZ(23,base=2).str(base=4), but it's not very convenient. sage: ZZ([1, 2], base=3) 7 sage: ZZ([1, 2], base=3).digits(2) [1, 1, 1] My opinion is

[sage-devel] Re: Regression testing

2010-10-25 Thread Nick Alexander
One could modify local/bin/sage-doctest to allow the option of changing each doctest by wrapping it in a timeit() call.  This would then generate a timing datum for each doctest line. I did this, a long long time ago. Not clear whether it was ever merged. See:

[sage-devel] Re: search_methods() to search the methods of an object

2010-10-19 Thread Nick Alexander
How about a function, somewhat like search_doc, search_def, and friends, that accepts an object and a string, and returns methods that match that string? Would you find that useful? I think this is a good idea, but can't resist... Often, I find myself doing X.atab (look through a

[sage-devel] Re: search_methods() to search the methods of an object

2010-10-19 Thread Nick Alexander
How about a function, somewhat like search_doc, search_def, and friends, that accepts an object and a string, and returns methods that match that string? Would you find that useful? In my haste to plug sage-mode, I forgot this: sage: X.*foo*? ... all methods that match 'foo'. Only in IPython

Re: [sage-devel] Re: Faster matrix input

2010-03-24 Thread Nick Alexander
matrix(r 1 0 0 0 1 0 1 0 0 1 0 0 1 0 1 0 0 0 1 1) python makes this not so hard: matrix(2, 2, map(ZZ, r 1 0 0 1.split())) or matrix(ZZ, 2, 2, r 1 0 0 1.split()) Nick -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to

Re: [sage-devel] Annual Spies Prize Winner Announced!

2010-03-21 Thread Nick Alexander
For his consistently conscientious commitment to Sage development, Minh Nguyen is the recipient of the 2010 Spies Development Prize. This award carries a prize of $500 from the Sage Foundation (thanks to Jaap Spies). Congratulations, Minh! This prize was earned, not won. Nick -- To post to

Re: [sage-devel] Category for IntegerModRing(n)

2010-03-20 Thread Nick Alexander
On 20-Mar-10, at 8:50 AM, John Cremona wrote: I would say that you should never test for primality unless specifically required, e.g. if the user asks is_field() (after which the category could be upgraded? I don't know if that is possible). I would always use GF(p) rather than IntegerMod(p)

Re: [sage-devel] Re: proposal: standard command-line options in Sage

2010-03-19 Thread Nick Alexander
On 19-Mar-10, at 6:53 AM, Jason Grout wrote: On 03/18/2010 10:05 PM, John H Palmieri wrote: Sage uses non-standard command-line options (e.g., -notebook rather than --notebook). I propose that we switch to standard ones. Here are two reasons: +1! When this issue came up a year or two ago,

Re: [sage-devel] Re: should hard integrals be evaluated numericaly if they fail to be evaluated?

2010-03-17 Thread Nick Alexander
On 17-Mar-10, at 10:18 AM, Mike Hansen wrote: On Wed, Mar 17, 2010 at 5:21 AM, Pablo Angulo pablo.ang...@uam.es wrote: Sorry to come back to this (two weeks) old topic, but what do you think about raising an exception whenever a symbolic integral (or any symbolic computation) fails?

Re: [sage-devel] What's the most informative subject header ?

2010-03-17 Thread Nick Alexander
On 17-Mar-10, at 4:27 PM, Dr. David Kirkby wrote: Minh posted the subject Sage 4.3.4.rc0 released a perfectly logical subject. Loads of people have replied so the subject becomes Re: Sage 4.3.4.rc0 released. They report success/failure on various systems. So far there is only half a

Re: [sage-devel] Re: should hard integrals be evaluated numericaly if they fail to be evaluated?

2010-03-17 Thread Nick Alexander
On 17-Mar-10, at 10:12 PM, Jason Grout wrote: On 03/17/2010 11:40 AM, Nick Alexander wrote: On 17-Mar-10, at 10:18 AM, Mike Hansen wrote: On Wed, Mar 17, 2010 at 5:21 AM, Pablo Angulo pablo.ang...@uam.es wrote: Sorry to come back to this (two weeks) old topic, but what do you think about

Re: [sage-devel] Re: Sage 4.3.4.rc0 builds ok on Solaris 10 (SPARC)

2010-03-17 Thread Nick Alexander
On 17-Mar-10, at 10:21 PM, Jason Grout wrote: On 03/17/2010 06:41 PM, Dr. David Kirkby wrote: What do you consider a Solaris-only issue? When a problem occurs with a particular release only on Solaris? If that is not put on sage-devel, you might as well say goodbye to keeping Sage building

Re: [sage-devel] Re: Sage 4.3.4.rc0 builds ok on Solaris 10 (SPARC)

2010-03-17 Thread Nick Alexander
On 17-Mar-10, at 10:41 PM, Dima Pasechnik wrote: William, While I think that posts here on a particular part of functionality (e.g. Solaris port) *continuing to work after an update* should not happen here, only posts on particular parts of functionality *ceasing to work* should be welcome

Re: [sage-devel] Logistic Curve Fitting in Sage

2010-03-12 Thread Nick Alexander
On 12-Mar-10, at 12:22 AM, Joal Heagney wrote: Hi guys and gals, Currently I'm attempting to fit the following data to the general logistic model: [(0,0),(1,0),(2,13),(3,28),(4,48),(5,89),(6,107),(7,168),(8,188), (9,209)] The form of the logistic curve I am using is: K/(1 + a*exp(r * (t -

Re: [sage-devel] Re: SAGE in abstract algebra class

2010-03-12 Thread Nick Alexander
On 12-Mar-10, at 6:14 AM, John Cremona wrote: On 12 March 2010 14:01, David Kohel drko...@gmail.com wrote: Hi Nicolas, The list sage-nt was set up to have a lower volume and lower noise forum for sage-devel issues with mathematical (number theoretic) interest. I also don't track

Re: [sage-devel] Re: conjugacy_class(es)_representatives

2010-03-12 Thread Nick Alexander
On 12-Mar-10, at 10:42 AM, Rob Beezer wrote: Hi Dan, The distinction is one group is a matrix group and the other is a permutation group. sage/groups/matrix_gps/matrix_group.py sage/groups/perm_gps/permgroup.py Presumably the method could be moved up the hierarchy a level. Can you make a

Re: [sage-devel] Re: Mathematica doctest

2010-03-11 Thread Nick Alexander
It may be the only way to get a semi-consistant result is to use the Mathlink protocol, but that would require linking to a proprietry library, so it could only be possible as an optional package, as otherwise it would breach the GPL. One way to get a consistent result is to do what I said

Re: [sage-devel] Moving _sig_on/_sig_off from Sage to Cython

2010-03-10 Thread Nick Alexander
On 10-Mar-10, at 11:01 AM, Brian Granger wrote: Hello all, In the older Cython docs here: http://modular.math.washington.edu/home/was/www/home/gfurnish/old/sage-3.0.6/doc/prog/node55.html The _sig_on and _sig_off macros are mentioned. But, when I try these in current Cython it fails. I

Re: [sage-devel] Is there going to be a sage-4.4 stabilisation release ?

2010-03-08 Thread Nick Alexander
In my personal opinion, a decent stabilisation release could be achieved by everyone submitting just bug fixes. Yep. The problem is that this involves telling everyone what to do. Not really. You tell people what a release will consist of. It is to them whether or not they want to submit

Re: [sage-devel] should hard integrals be evaluated numericaly if they fail to be evaluated?

2010-03-07 Thread Nick Alexander
Personally, I think there should not be an automatic changeover to numerical methods. +1. The convention in Sage is that explicit is better than implicit. If you want numerical results, you ask for numerical results. Nick -- To post to this group, send an email to

Re: [sage-devel] Re: Vote on bugs to be fixed for sage-4.4 stabilization release.

2010-03-05 Thread Nick Alexander
On 5-Mar-10, at 5:26 PM, Dr. David Kirkby wrote: William Stein wrote: Hi, Goals for Sage-5.0: * 90% doctest coverage score (=write about 1500 doctests) Hopefully with some justification of why the expected result is what it is. Not magic numbers - see

Re: [sage-devel] Re: Vote on bugs to be fixed for sage-4.4 stabilization release.

2010-03-05 Thread Nick Alexander
David is trying to argue that the goals for Sage-5.0 should be * Official Solaris 10 support (all tests pass) TARGET DATE: Sometime in March? *instead* of the following: * 90% doctest coverage score (=write about 1500 doctests) * Official Solaris 10 support (all tests pass) * Official

Re: [sage-devel] Re: Memory leak

2010-03-05 Thread Nick Alexander
On 5-Mar-10, at 6:27 PM, Dima Pasechnik wrote: if it's PARI-dependent, it makes sense to upgrade PARI to the latest version. PARI used by Sage is almost 2-year old. They rolled out two upgrades in the meantime. Unfortunately, updating PARI in sage is phenomenally difficult. I tried more

Re: [sage-devel] Randomised testing against Mathematica

2010-03-02 Thread Nick Alexander
On 2-Mar-10, at 10:04 PM, David Kirkby wrote: Has anyone ever considered randomised testing of Sage against Mathematica? Randomised? No. But I have tested my code for computing theta functions against all of Mathematica, Maple, and Magma -- curiously, the three rarely agreed. Nick

Re: [sage-devel] Suggestion to add date+time to test.log

2010-02-26 Thread Nick Alexander
On 26-Feb-10, at 10:41 AM, David Kirkby wrote: If one runs 'make test' it creates a file test.log in $HOME/.sage/tmp If would be useful if that file had the date and time in its name, or even the PID so one could test multiple versions of Sage on the same machine at the same time. +1.

Re: [sage-devel] Sanity check on objects, parents and elements

2010-02-26 Thread Nick Alexander
On 26-Feb-10, at 12:59 PM, Florent Hivert wrote: Hi there, In order to sanitize the behavior of objects, parents and elements in sage, I'm about to add some tests to the framework. I think they are all reasonable but I may be asking to much. I think your suggestions are

Re: [sage-devel] Re: Add 'gcc' libraries to Sage binaries ( 0.5% bloat)

2010-02-23 Thread Nick Alexander
As much as I can see why people do not like this, I can see a lot of logic in William's approach. To add to what David said, some of this is historical. The 100 packages sage builds now are unwieldy, but it was not always so. Earlier distributions contained much less, and shipping them

Re: [sage-devel] improvements to FEMhub with regards to Sage

2010-02-22 Thread Nick Alexander
$ git grep Sage I think that git grep sage (really, case insensitive) is probably necessary too, since we have changed cases many times. Nick -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to

Re: [sage-devel] Protecting special names against assignation

2010-02-20 Thread Nick Alexander
I'm all for a special mode, but to do this by default would be backwards incompatible and yet another incompatibility from Python. I'm -1 for a special mode, but I am +1 for keeping the default to be like Python. Out of curiosity, does anyone use the special mode that transforms a b -

Re: [sage-devel] Re: QQbar and group algebras

2010-02-17 Thread Nick Alexander
On 17-Feb-10, at 8:27 AM, Nicolas M. Thiery wrote: On Wed, Feb 17, 2010 at 07:50:57AM -0800, javier wrote: Apparently I was assuming too much. The result of the evaluation of the character belongs to some cyclotomic field, so apparently the problem is that there is not a coercion between

Re: [sage-devel] Re: QQbar and group algebras

2010-02-17 Thread Nick Alexander
PS: FWIW, in this kind of problem having a nice VectorSpaceWithBasis so that I could define a vector space with basis given by the group elements, would come really fancy. I also want this! Various people in the combinat group suggested they had it/were working on it, but I don't know the

Re: [sage-devel] Re: QQbar and group algebras

2010-02-17 Thread Nick Alexander
On 17-Feb-10, at 10:03 AM, Nicolas M. Thiery wrote: On Wed, Feb 17, 2010 at 08:53:23AM -0800, Nick Alexander wrote: PS: FWIW, in this kind of problem having a nice VectorSpaceWithBasis so that I could define a vector space with basis given by the group elements, would come really fancy. I

Re: [sage-devel] Re: QQbar and group algebras

2010-02-17 Thread Nick Alexander
I don't think you can have automated conversion like C(a^2 + b^2) since it makes sense to define: sage: C = CombinatorialFreeModule(QQ, [ a^2, b^2, a*b, a^2+b^2 ]) sage: 2*C.basis()[a^2] + C.basis()[b^2] B[b^2] + 2*B[a^2] sage: 2*C.basis()[a^2] + C.basis()[b^2 + a^2] 2*B[a^2] + B[a^2 + b^2]

Re: [sage-devel] Re: Trac #8276: The one of MatrixSpace can be changed !

2010-02-15 Thread Nick Alexander
To have an idea of the usage I went trough the code: - MatrixSpace.identity_matrix implement 1. - MatrixSpace.zero_matrix implement 3. Of course, my opinion is to make those three methods implements 2. :-) +1 for doing option (2). I very often want to start with the zero_matrix or the

Re: [sage-devel] GPL issues again - trivial ones this time !!!

2010-02-09 Thread Nick Alexander
2) Display a notice on the browser window that the program is GPL, say it has no warranty etc, then say To see the full terms of the license, type licence() at the Sage prompt Isn't this enough? -- | Sage Version 4.1.1,

Re: [sage-devel] Tab Completion Broken in 4.3.2

2010-02-09 Thread Nick Alexander
On 9-Feb-10, at 12:11 PM, Martin Albrecht wrote: Try this: sage: P.x,y = QQ[] sage: P.TAB Could you try P.*? ENTER If that fails, there might be trouble with ipython. Nick -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an

Re: [sage-devel] Do Sage version numbers follow any logic ?

2010-02-04 Thread Nick Alexander
On 4-Feb-10, at 1:34 PM, Minh Nguyen wrote: Hi David, On Thu, Feb 4, 2010 at 8:10 PM, Dr. David Kirkby david.kir...@onetel.net wrote: SNIP Comments ? In the past [1] I expressed an interest in maintaining a conservative release. That was before I realized that release management is a

Re: [sage-devel] Re: abs() for (very) long integers?

2010-02-02 Thread Nick Alexander
sage: d = M.determinant() sage: d.norm().abs() # take norm to get an integer 712483534798848 I thought of this as well, but it could be wrong since there might be an element of the appropriate norm in the cyclotomic field that is erroneously returned! I suggest QQ(d).abs() :) Nick

Re: [sage-devel] Re: Supported Platforms web page is *very* out of date

2010-01-31 Thread Nick Alexander
. Until that changes, your goals and my goals are only occasionally aligned. Nick Alexander -- 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

Re: [sage-devel] Re: Supported Platforms web page is *very* out of date

2010-01-31 Thread Nick Alexander
By and large, we are a community of mathematicians. Correct me if I'm wrong, but you are not contributing to the mathematical aspects of Sage. Until that changes, your goals and my goals are only occasionally aligned. I hate to think that the only people that are valid contributors to

Re: [sage-devel] Re: Supported Platforms web page is *very* out of date

2010-01-31 Thread Nick Alexander
On 31-Jan-10, at 11:35 PM, Peter Jeremy wrote: On 2010-Jan-31 22:02:19 -0800, Nick Alexander ncalexan...@gmail.com wrote: Not at all. But take away mathematics, and we don't have a *product*. Take away release management, fixing bugs, documentation, or maintaining the web site and we have

Re: [mpir-devel] Re: [sage-devel] Re: MPIR 1.3.0 released (at last)

2010-01-30 Thread Nick Alexander
Building Sage on HP-UX is just going to cause an immense amount of grief for a whole load of Sage developers. Why force hundreds of people to work to support a substandard compiler on a system no one is ever going to use Sage on, just so you can catch a few hidden bugs, when we have hundreds of

Re: [sage-devel] sage-mode 0.6 / emacs21 init errors

2010-01-28 Thread Nick Alexander
On 28-Jan-10, at 6:51 AM, xtian wrote: Using sage-mode 0.6 with emacs21, I'm getting the following parse errors (produced with 'emacs --debug-init') on startup, i.e. when SAGE_ROOT/data/emacs/sage.el gets loaded: ---snip--- Debugger entered--Lisp error: (wrong-number-of-arguments #[(regexp)

Re: [sage-devel] sage-mode 0.6 / emacs21 init errors

2010-01-28 Thread Nick Alexander
On 28-Jan-10, at 11:16 AM, xtian wrote: Nick Alexander wrote: [...] Try custom-set-variable inferior-sage-prompt to the following string: \\(?:^\\(?:\\(?:(\\(?:[Pg]db)\\)\\|\\.\\.\\.\\(?:\\.\\.\\)?\\|\\| ipdb\\|sage:\\) \\)+\\) I experimented with that a little, but to no avail (my elisp

Re: [sage-devel] docstrings test failures for randomised computations

2010-01-28 Thread Nick Alexander
It seems to me that the right way to deal with this is to extend the capabilities of the testing scheme so that it is able to handle sets, not only lists. -1 The testing scheme (the doctests part at least) is text-based. What about sage: tested_function() # random order set([1, 5, 7, -3,

Re: [sage-devel] Re: Comminting changes with mercurial

2010-01-23 Thread Nick Alexander
On 23-Jan-10, at 7:35 PM, Oscar Lazo wrote: Ok, so i produced a patch called 13535.patch and tried to import it using sage -hg import /home/oscar/13535.patch in my command prompt, and i got: applying /home/oscar/13535.patch patching file sage/plot/plot3d/all.py Hunk #1 FAILED at 0 1 out of

Re: [sage-devel] Wiki question

2010-01-23 Thread Nick Alexander
IMHO, that is far too trivial. Most 14 year old school child will know what that is. You say that like it is a Bad Thing. Personally, I think a text file in the source directory would be best. It would mean someone has downloaded the source (do same for binary). If they have never

Re: [sage-devel] Re: Comminting changes with mercurial

2010-01-23 Thread Nick Alexander
On 23-Jan-10, at 10:30 PM, Oscar Lazo wrote: SyntaxError: invalid syntax (plot3d.py, line 229) You should look here. It occurs that IRC might be more useful than this mailing list: irc.freenode.net #sage-devel. Nick -- To post to this group, send an email to sage-devel@googlegroups.com

Re: [sage-devel] Re: Vote! factorization of some special numbers

2010-01-14 Thread Nick Alexander
On 14-Jan-10, at 1:36 PM, Georg S. Weber wrote: +1 +1! Such factorizations also have applications to congruences concerning Bell and Uppuluri-Carpenter combinatorial numbers. Nick -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group,

Re: [sage-devel] weirdness in simplifying a symbolic expression

2010-01-14 Thread Nick Alexander
sage: y = expand(K.det()); y a*d*e*h - a*d*f*g - b*c*e*h + b*c*f*g sage: simplify(y) -a*d*f*g + a*d*h*e + b*c*f*g - b*c*h*e To me, these look like the same expressions, just one has variables sorted differently (h e?) and different term orders. What is the issue? Nick -- To post to

Re: [sage-devel] homogenising of polynomials -- automatic choice of a new variable name?

2010-01-10 Thread Nick Alexander
I don't think it's a good idea to use the same variable names + one other, since then the user is left with two different polynomial rings in n and n+1 variables, with no inclusion map between them, but such that the n variables of the first have the same names as the first n variables of the

Re: [sage-devel] homogenising of polynomials -- automatic choice of a new variable name?

2010-01-10 Thread Nick Alexander
That just leaves the question of inventing a new variable name given any n names already defined... I think the plan you suggested was reasonable. I suggest determining if all names have a common prefix, then seeing if each suffix is an integer. If yes, take the next largest integer

Re: [sage-devel] Re: Conjugacy classes: Sage vs GAP

2010-01-08 Thread Nick Alexander
On 8-Jan-10, at 8:55 AM, javier wrote: Hi all, I have been working on this and after a while decided that my original approach wasn't the most appropriate and started rewriting everything for scratch. After thinking about this problem making conjugacy_class a method that returns a list (or

Re: [sage-devel] Re: implementation of some algorithm that i have implemented it in maple

2009-12-16 Thread Nick Alexander
On 16-Dec-09, at 5:05 PM, William Stein wrote: On Wed, Dec 16, 2009 at 2:04 PM, Jaap Spies j.sp...@hccnet.nl wrote: Hasan Noori wrote: dear sage-devel, i'm a master student of mathematic in filed of Groebner basis i'm coding in maple, and have many algorithm implementation around

Re: [sage-devel] Questions and proposals for matrices

2009-12-11 Thread Nick Alexander
(In fact I'd wish for a convention that all matrix factorizations returned immutable matrices by default, since the factorizations are cached and one doesn't typically change them before using them.) I think I wrote some (trivial!) Cholesky decomposition code, and not making the

Re: [sage-devel] problems with Bessel functions

2009-12-08 Thread Nick Alexander
On 8-Dec-09, at 8:59 PM, Dan Drake wrote: On Tue, 08 Dec 2009 at 10:44PM -0300, Pablo De Napoli wrote: I'm trying to do some computations with Bessel functions using Sage. Unfortunately, they don't seem to behave like other functions. For example: to get the plot of the sine function over

Re: [sage-devel] SageTex

2009-12-06 Thread Nick Alexander
[ ] Yes! +1 Nick -- 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

Re: [sage-devel] Re: Suspicious file in a binary distribution?

2009-12-04 Thread Nick Alexander
On 4-Dec-09, at 12:33 AM, Pierre wrote: I know you have other things to do, but do you think you could write a quick-start guide to sage-mode? Thanks for posting the basics, Pierre. Allow me to add a few interesting snippets. ** open a .sage file in emacs, and go ctrl-c ctrl-c

Re: [sage-devel] Re: Suspicious file in a binary distribution?

2009-12-02 Thread Nick Alexander
In the Python environment, if someone detects an error in a Python function FF, then the function can be replaced in the run-time environment, e.g. at a command line by: This is technically true but in practice not useful. Most Python code is not a top-level function; it is a class member

Re: [sage-devel] Re: Suspicious file in a binary distribution?

2009-12-02 Thread Nick Alexander
Well, clearly you should be using emacs instead of vi :) Aah, the answer to all of life's problems! :) I would say, clearly you should use sage-mode from within emacs. Why not edit emacs buffers with all the tools that you would expect, plus deep integration between your buffers and the

Re: [sage-devel] Re: coercion, categories, and slow code

2009-12-01 Thread Nick Alexander
Nevertheless, the regular expression business isn't good either. I'll see what I can do -- recent sage-devel/sage-support threads indicated some improvements. I'm certain you are aware, but there is an art to optimizing regular expressions. It might be that a tuned regex is necessary,

Re: [sage-devel] Re: InfinitePolynomialRing is -- very -- slow

2009-11-26 Thread Nick Alexander
On 26-Nov-09, at 10:18 AM, Nicolas M. Thiery wrote: On Thu, Nov 26, 2009 at 08:30:53AM -0800, YannLC wrote: Just a toy implementation as a very thin layer over dict (at least it should be fast) That's precisely what CombinatorialFreeModule elements are :-) Further optimizations to it are

Re: [sage-devel] Re: InfinitePolynomialRing is -- very -- slow

2009-11-26 Thread Nick Alexander
On 26-Nov-09, at 12:23 PM, Florent Hivert wrote: On Thu, Nov 26, 2009 at 08:30:53AM -0800, YannLC wrote: Just a toy implementation as a very thin layer over dict (at least it should be fast) That's precisely what CombinatorialFreeModule elements are :-) Further optimizations to it are

Re: [sage-devel] Re: A Sage NSF proposal to the Computational Mathematics Program

2009-11-23 Thread Nick Alexander
It's time for this thread to move to sage-flame. Please no more messages on sage-devel. Nick -- 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

[sage-devel] Re: Fwd: 3d mandelbrot

2009-11-16 Thread Nick Alexander
The pictures are amazing , if sage could do this , it would look out of this world in any sage presentation. I'm not usually interested in such renderings, but these images are unbelievable. Well worth the click. Nick --~--~-~--~~~---~--~~ To post to

[sage-devel] Re: Edges in graphs and order

2009-11-16 Thread Nick Alexander
There have been lots of times that I had to deal with the issue of the Graph edge (1,2) being the same as the edge (2,1); it's one of those thorns that keeps being a bit annoying, so I'm happy to have a small change that would take care of it. Maybe, to be consistent, Digraph edges should

[sage-devel] Re: Error when calling maxima.

2009-11-16 Thread Nick Alexander
This is because when you type from scipy import integrate you are overwriting the integrate function. (There can only be one thing named integrate at a time in a given scope.) I agree that this is the cause, but it is still a bug. Why on earth does the toplevel integrate function have

[sage-devel] Re: Error when calling maxima.

2009-11-16 Thread Nick Alexander
On 16-Nov-09, at 8:08 PM, Nick Alexander wrote: This is because when you type from scipy import integrate you are overwriting the integrate function. (There can only be one thing named integrate at a time in a given scope.) I agree that this is the cause, but it is still a bug. Why

[sage-devel] Re: Debugging personal code

2009-11-15 Thread Nick Alexander
On 15-Nov-09, at 9:08 PM, James Youngquist wrote: Hello, I'm new at the whole python/sage thing. Is there a better way to debug pieces of code we're working on other than to insert print statements? Something where we can step through the code a line at a time or generate

[sage-devel] Re: Debugging personal code

2009-11-15 Thread Nick Alexander
4. I plan to implement a debugger like pdb in the notebook. Something very similar has already been done by the Pylons project, which should give an idea of how to do it for Sage. This would be all kinds of awesome. If you are not familiar with the Smalltalk debugger, may I suggest you

[sage-devel] Re: Set reorders elements

2009-11-07 Thread Nick Alexander
On 7-Nov-09, at 8:29 PM, Alex Ghitza wrote: This is a bit disconcerting: sage: Set(['a', 'b', 'c']) {'a', 'c', 'b'} sage: Set(['a', 'b', 'c', 'd']) {'a', 'c', 'b', 'd'} sage: Set(['a', 'b', 'c', 'd', 'e']) {'a', 'c', 'b', 'e', 'd'} Bug? It doesn't seem to happen with lists of

[sage-devel] Re: of Google Groups and spam

2009-10-30 Thread Nick Alexander
On 30-Oct-09, at 3:09 AM, Minh Nguyen wrote: Hi folks, Just in case you're wondering why spam mails got through occasionally, here are some stories that present the moderator's side: As a frequent denigrator of Google Groups, I read these, followed some links, and found a potential

[sage-devel] Re: coercion error: calling functions with vector inputs

2009-10-27 Thread Nick Alexander
On 27-Oct-09, at 3:17 PM, Jason Grout wrote: I was looking at how to make my calc 3 calculations easier to understand by calling a multivariable function with a vector input. I ended up with a coercion error. I'm not that familiar with how to work with the coercion system. Would

[sage-devel] Re: coercion error: calling functions with vector inputs

2009-10-27 Thread Nick Alexander
Why do you think that f, which is a function from R^2-R^1, should not naturally be able to take inputs that live in R^2? I don't. But that's not the way that Python works, and the existing implementation tries to make f(x, y) look like a Python function of two variables. I would be fine

[sage-devel] Re: coercion error: calling functions with vector inputs

2009-10-27 Thread Nick Alexander
Note that we already do that for things like parametric_plot, derivatives, etc. And it's a continual pain in the ass. Telling the difference between a list, tuple, sequence, iterator, vector, multiple arguments, etc... in Python, it's just all so inconsistent. But it seems like the

[sage-devel] Re: What about Sage Conservative version?

2009-10-26 Thread Nick Alexander
On 26-Oct-09, at 11:22 AM, William Stein wrote: Hi, I wonder why everybody (*) making suggestions has never put together a single Sage release themselves, yet everybody who has done significant work putting together Sage releases, organizing the web page, mirror binaries, etc., has

[sage-devel] Re: backwards compatibility of sage 4.1.2 format

2009-10-20 Thread Nick Alexander
On 20-Oct-09, at 9:59 AM, Robert Bradshaw wrote: On Oct 20, 2009, at 5:38 AM, Pablo Angulo wrote: The new sage version 4.1.2 introduces a new file format that is incompatible with the previous one. If I use download fo a file, that file can't be opened with sage 4.1.1 (viceversa works

[sage-devel] Re: Doctest for a minor bugfix?

2009-10-12 Thread Nick Alexander
Perhaps collapsible headings (so TESTS was automatically collapsed) +1 Nick --~--~-~--~~~---~--~~ 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

[sage-devel] Re: DiGraph methods predecessors and successors

2009-10-06 Thread Nick Alexander
I have no clue how to write what you are describing. Graph.neighbors would be a subobject, does that mean an independent class ? Wouldn't this slow down the whole Graph class, as these functions are among the most used ? Here I feel that I do not know Python enough to help.. :-)

[sage-devel] Re: DiGraph methods predecessors and successors

2009-10-06 Thread Nick Alexander
As far as it being *possible* to split up graph.py... It's a ten minute job, but nobody's done it. You could split it in three right away by having generic_graph.py, graph.py and digraph.py. +1 Nick --~--~-~--~~~---~--~~ To post to this group, send an email

[sage-devel] Re: Sage component manuals

2009-09-26 Thread Nick Alexander
On 26-Sep-09, at 12:35 AM, Robert Bradshaw wrote: On Sep 25, 2009, at 8:31 PM, Kwankyu wrote: It is totally feasible. It hasn't happened only because nobody has done it. I think the only good reasonable longterm way to do this would be to modify the spkg-install for each and every

[sage-devel] Re: [femhub] some suggestions to web notebook

2009-09-24 Thread Nick Alexander
* More of a python import thing. In this scenario, each worksheet has an optional filename. If you use python to import some_other_worksheet, the path is set up such that the normal python import mechanism works. This gives you all of the normal python namespace mechanisms. To enable

[sage-devel] Re: survey: how many cpus do you have?

2009-09-23 Thread Nick Alexander
This seems to give reasonable numbers for my iMac, an ubuntu box I sometimes use, and sage.math. Does it give bad numbers for your computer? sage: import multiprocessing sage: multiprocessing.cpu_count() 2 sage: !uname -a Darwin pv139204.reshsg.uci.edu 9.7.0 Darwin Kernel Version 9.7.0: Tue

[sage-devel] Re: IRC logs for #sage-devel?

2009-09-23 Thread Nick Alexander
On 23-Sep-09, at 9:40 AM, William Stein wrote: On Wed, Sep 23, 2009 at 3:14 AM, Tim Dumol t...@timdumol.com wrote: Are there any IRC logs up for #sage-devel? If there isn't, then perhaps we can have a bot (http://www.eggheads.org/) do logging automatically, and have them automatically

[sage-devel] Re: Behavior of solve

2009-09-22 Thread Nick Alexander
Sorry if i am stating the obvious here, the reason is that i am trying to explain why i think it should be (either implicit or explicit) clear over which algebraic structure is computed. Generally it is -- try parent(foo) or foo.parent() to see what algebraic structure is in play. sage:

[sage-devel] Re: the Sage notebook

2009-09-21 Thread Nick Alexander
On 20-Sep-09, at 5:34 AM, William Stein wrote: Hi, If anybody is planning on working on the Sage notebook during the next week, please keep in close communication with me and or this list. I'm working on separating out the notebook out as a completely separate Python library. If you

[sage-devel] Re: Suspiciously sorted sets

2009-09-21 Thread Nick Alexander
I'll likely add to Trac a ticket about the need for a comparison method on sets later today when I get a chance. Just for the record, sorted sets make very little sense. It is important to be able to have a set containing anything that is hashable (in the python sense) but not necessarily

[sage-devel] Re: round(), floor() and ceil() on interval objects

2009-09-19 Thread Nick Alexander
Well, I'm a little confused -- I thought that the whole point of floor() and ceil() was to return Integers. Indeed: In my opinion, this is a huge +1. Nick --~--~-~--~~~---~--~~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe

[sage-devel] Re: round(), floor() and ceil() on interval objects

2009-09-17 Thread Nick Alexander
On 17-Sep-09, at 12:53 AM, Jason Grout wrote: Currently, round(), floor(), and ceil() on interval objects return intervals. There is a patch up at #2899 that changes these functions to return integers (round- round the midpoint, floor - largest integer below the bottom of the interval,

[sage-devel] Re: back ticks versus $ signs

2009-09-03 Thread Nick Alexander
[X] Yes, give me $'s! [ ] No, this doesn't bug me; let's keep ReST/Sphinx in Sage pure. I've been annoyed by this ever since we switched over to ReST. I also have been annoyed by this. Nick --~--~-~--~~~---~--~~ To post to this group, send an email to

[sage-devel] Re: Design question about rings, re #6441

2009-08-22 Thread Nick Alexander
sage: R.is_field(unknown_returns_false=True) True or False Why not R.is_field(unknown_returns=XXX) so you can specify the desired value for I don't know, either False or True? Otherwise, +1 -- this has been a problem in other places for me. Nick

[sage-devel] Re: typo in patch of ticket #6396: primes_of_degree_one is broken for relative extensions

2009-08-22 Thread Nick Alexander
Minh, I don't mean to pick on you; this is a generic please quote appropriately message. I am going to start replying to messages that don't quote with good netiquette. This is a two line reply that refers to the thread, not even the messages before it. Please just leave one line

[sage-devel] Re: ECL as a library

2009-08-22 Thread Nick Alexander
William, I don't mean to pick on you; this is a generic please quote appropriately message. I am going to start replying to messages that don't quote with good netiquette. This is a two line reply. Please just leave a few lines of direct context, then reply: [ pages of text deleted,

[sage-devel] Re: Suggestion to print extra information in the banner.

2009-08-21 Thread Nick Alexander
On 21-Aug-09, at 4:00 PM, John H Palmieri wrote: Here's a proposal: the banner could look like this (looks best in fixed-width font -- the first line and the last two lines are centered): -- |Sage version

[sage-devel] Re: What's the view on updating Maxima?

2009-08-20 Thread Nick Alexander
For the cases where fixing seems non-trivial, we can discuss here how to deal with them. Please post a log somewhere (not on list) so that the masses can take a look. I can often identify trivial fixes quickly. Nick --~--~-~--~~~---~--~~ To post to this

[sage-devel] quoting netiquette

2009-08-20 Thread Nick Alexander
standards. If so, I apologize.) Let's keep sage-devel easy to read! Nick Alexander --~--~-~--~~~---~--~~ 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

[sage-devel] Re: enhance usability of symbolic expressions?

2009-08-19 Thread Nick Alexander
flamebait The computer scientist in me just can't believe Maple and Mathematica are designed that way. It's just sad. /flamebait This is merely dynamic versus lexical scope. When you need dynamic scope, it's not easy to fake it. Of course, most of the time, you don't need it and in fact

  1   2   3   4   5   >