[sage-devel] Re: Coercion, was: element of integermod is element of integer?

2009-03-16 Thread Nicolas M. Thiery
Hi Martin! On Mon, Mar 16, 2009 at 11:35:22AM +0100, Martin Rubey wrote: > "Nicolas M. Thiery" writes: > > Just a short question: does the interpreter handle transitivity: > > i.e. if there is a coercion A -> B and one B -> C, then deduce one for > > A -> C? > > I just realized that you

[sage-devel] Re: Fodder for a Sage review

2009-03-16 Thread Rob Beezer
David - thanks for the reply, and especially for the reminder to not forget about R. Ahmed - I'd like to use your application in the review. I'll contact you off-list right now for more, but if you miss that, please be back in contact. Fredrik - glad we could help make your day. ;-) More cont

[sage-devel] Re: search_doc paths?

2009-03-16 Thread John H Palmieri
On Mar 16, 7:27 pm, Dan Drake wrote: > On Mon, 16 Mar 2009 at 07:13PM -0700, Nils Bruin wrote: > > If I do search_doc("orbit") in sage 3.4 (in the notebook), I get > > (amongst others) a link: > > >https://localhost:8000/doc/live/html/en/reference/genindex-F.html > > > which leads to a "resource

[sage-devel] Fwd: [Om] Announcement: Java Library for SCSCP and OpenMath

2009-03-16 Thread David Joyner
Since this concerns a communication protocol between GAP and Maple (and KANT and some others), I thought some people on this list might find this interesting. -- Forwarded message -- From: Dan Roozemond Date: Mon, Mar 16, 2009 at 12:18 PM Subject: [Om] Announcement: Java Library

[sage-devel] Re: search_doc paths?

2009-03-16 Thread Dan Drake
On Mon, 16 Mar 2009 at 07:13PM -0700, Nils Bruin wrote: > If I do search_doc("orbit") in sage 3.4 (in the notebook), I get > (amongst others) a link: > > https://localhost:8000/doc/live/html/en/reference/genindex-F.html > > which leads to a "resource cannot be found". The appropriate link > seems

[sage-devel] search_doc paths?

2009-03-16 Thread Nils Bruin
If I do search_doc("orbit") in sage 3.4 (in the notebook), I get (amongst others) a link: https://localhost:8000/doc/live/html/en/reference/genindex-F.html which leads to a "resource cannot be found". The appropriate link seems to be https://localhost:8000/doc/live/reference/genindex-F.html It

[sage-devel] Re: deprecating calling of symbolic expressions without variable names

2009-03-16 Thread kcrisman
> Sorry for the self reply, amend that second example to clarify my intent: > sage: f=1 > sage: # many lines of code > sage: integrate(f)  # what does this mean? > ... > sage: integrate(f,x) > x > > Perhaps I should also say that I actually found the original versions of plot > outright confusing

[sage-devel] Re: #5535

2009-03-16 Thread John Cremona
What on earth is that function is_primitive() doing there? If you asked me to define what it means for a univariate polynomial over a ring to be primitive then I would say that it means that the coefficients generate the unit ideal. The function there seems to be a different concept only relevan

[sage-devel] Re: Compiling the doc...

2009-03-16 Thread mabshoff
On Mar 16, 1:43 pm, davidloeffler wrote: Hi David, > I also came across the problem with quaternion_order_ideal.py, but for > me it went away when I re-built from a clean tarball (rather than > upgrading from 3.4.rc0 as I had done before). But even the final 3.4 > tarball generates some Sphin

[sage-devel] #5535

2009-03-16 Thread Martin Albrecht
Hi there, http://trac.sagemath.org/sage_trac/ticket/5535 adds a neat way of shooting yourself in the foot in the name of performance, so I wonder if anyone has any hard feelings about that? I suggested to include this in Sage (Ryan had a local version for his application), so I think it is

[sage-devel] Re: Corrections to tutorial

2009-03-16 Thread Robert Bradshaw
On Mar 16, 2009, at 9:47 AM, William Stein wrote: > > On Mon, Mar 16, 2009 at 8:19 AM, R (Chandra) Chandrasekhar > wrote: >> >> Dear Folks, >> >> I am working my way through the Sage 3.4 Tutorial from my local >> copy of >> it, with sage running in a terminal. >> >> I have encountered some pit

[sage-devel] Re: SAGE possible improvement

2009-03-16 Thread Robert Bradshaw
On Mar 14, 2009, at 6:29 PM, Jason Grout wrote: > It sounds like the problems is the known issue that numpy does not > interact very well with Sage data types. Try this: > > from numpy import * > import quantities as pq > res = 10r*pq.ohm > > The 10r means to create a python integer, rather than

[sage-devel] Re: deprecating calling of symbolic expressions without variable names

2009-03-16 Thread Robert Bradshaw
On Mar 15, 2009, at 7:29 PM, Ronan Paixão wrote: > Em Dom, 2009-03-15 às 17:11 -0700, kcrisman escreveu: >> >>> Wouldn't it be clearer if the error message read >>> >>> NameError: name 't' is not defined, try var('t') beforehand >>> >>> or something similar? >>> >>> Perhaps as Carl deprecates c

[sage-devel] Re: Compiling the doc...

2009-03-16 Thread davidloeffler
I also came across the problem with quaternion_order_ideal.py, but for me it went away when I re-built from a clean tarball (rather than upgrading from 3.4.rc0 as I had done before). But even the final 3.4 tarball generates some Sphinx error messages when you do a docbuild, from some slightly mis-

[sage-devel] setupdocs plugin of setuptools

2009-03-16 Thread Jaap Spies
Hi, setuptools is part of standard sage. Is it feasable to get setupdocs in? Available Packages Name : python-setupdocs Arch : noarch Version: 1.0.1 Release: 3.fc9 Size : 16 k Repo : updates-newkey Summary: Setuptools plugin URL: http://pypi.python.or

[sage-devel] Re: Fwd: Stirling numbers

2009-03-16 Thread Fredrik Johansson
On Mon, Mar 16, 2009 at 8:37 PM, John Cremona wrote: > I assumed that Stirling numbers would be in Sage as part of sage-combinat > but it seems that we just wrap two GAP functions.  Are we as fast as we > could be?  And does Neil Sloane read any of our lists as he clearly does > pari-users? Rela

[sage-devel] Fwd: Stirling numbers

2009-03-16 Thread John Cremona
I assumed that Stirling numbers would be in Sage as part of sage-combinat but it seems that we just wrap two GAP functions. Are we as fast as we could be? And does Neil Sloane read any of our lists as he clearly does pari-users? John PS also tere's a typo in the docstring of stirling_number1().

[sage-devel] Re: deprecating calling of symbolic expressions without variable names

2009-03-16 Thread Carl Witty
On Mon, Mar 16, 2009 at 11:51 AM, Joel B. Mohler wrote: > > On Monday 16 March 2009 12:27:10 pm kcrisman wrote: >> sage: integrate(y^2) >> --- >> TypeError                                 Traceback (most recent call >> last)

[sage-devel] Re: deprecating calling of symbolic expressions without variable names

2009-03-16 Thread William Stein
On Mon, Mar 16, 2009 at 12:03 PM, Joel B. Mohler wrote: > > On Monday 16 March 2009 02:51:30 pm Joel B. Mohler wrote: >> On Monday 16 March 2009 12:27:10 pm kcrisman wrote: >> > sage: integrate(y^2) >> > - >> >-- TypeError  

[sage-devel] Re: deprecating calling of symbolic expressions without variable names

2009-03-16 Thread Joel B. Mohler
On Monday 16 March 2009 02:51:30 pm Joel B. Mohler wrote: > On Monday 16 March 2009 12:27:10 pm kcrisman wrote: > > sage: integrate(y^2) > > - > >-- TypeError                                 Traceback (most recent call > > las

[sage-devel] Re: deprecating calling of symbolic expressions without variable names

2009-03-16 Thread Joel B. Mohler
On Monday 16 March 2009 12:27:10 pm kcrisman wrote: > sage: integrate(y^2) > --- > TypeError                                 Traceback (most recent call > last) > TypeError: cannot coerce type ' 'sage.symbolic.expression.Expre

[sage-devel] Re: Compiling the doc...

2009-03-16 Thread mabshoff
On Mar 16, 11:43 am, Florent Hivert wrote: > > It might be, but this is the error reported: "OSError: [Errno 24] Too > > many open files" > > > Can you check with ulimit -a what your current limit is (it seems to > > be 1024 on sage.math for example) and increase it and try again? The > > sphin

[sage-devel] Re: Compiling the doc...

2009-03-16 Thread Florent Hivert
> It might be, but this is the error reported: "OSError: [Errno 24] Too > many open files" > > Can you check with ulimit -a what your current limit is (it seems to > be 1024 on sage.math for example) and increase it and try again? The > sphinx build works for me with 256 max open files on OSX, so

[sage-devel] Re: SAGE possible improvement

2009-03-16 Thread Maurizio
In fact my idea is a bit different, and I'll explain in a minute: provided that the system is SI, you should get the result as a multiplier (bigger than one) of the closest classic unit representation ex: meters -> nm - um - mm - m - km - ecc ecc ex: x1 = 10cm x2 = 1m x1 + x2 = 1.1m y1 = 1V (Vol

[sage-devel] Re: Compiling the doc...

2009-03-16 Thread mabshoff
On Mar 16, 11:25 am, Florent Hivert wrote: >     Hi > > > There is a quaternion_order.rst in devel/sage/doc/en/reference/sage/ > > algebras that seems to be autogenerated. > > > After nuking the output directory rebuilding all documentation > > repeatedly works. > > I tried this one... But on m

[sage-devel] Re: Compiling the doc...

2009-03-16 Thread Florent Hivert
Hi > There is a quaternion_order.rst in devel/sage/doc/en/reference/sage/ > algebras that seems to be autogenerated. > > After nuking the output directory rebuilding all documentation > repeatedly works. I tried this one... But on my computation server: sage/algebras/steenrod_algebra_elem

[sage-devel] Re: Compiling the doc...

2009-03-16 Thread mabshoff
On Mar 16, 11:08 am, Carl Witty wrote: > On Mon, Mar 16, 2009 at 10:46 AM, mabshoff wrote: > > > On Mar 16, 10:37 am, mabshoff wrote: > > > > > >> But strangely enough when I run the documentation build I run into the > >> same issue you described. I am poking around to see what is > >> happ

[sage-devel] Re: Compiling the doc...

2009-03-16 Thread Carl Witty
On Mon, Mar 16, 2009 at 10:46 AM, mabshoff wrote: > > > > On Mar 16, 10:37 am, mabshoff wrote: > > > >> But strangely enough when I run the documentation build I run into the >> same issue you described. I am poking around to see what is >> happening ... > > An observation: > > " > pickling env

[sage-devel] Re: Compiling the doc...

2009-03-16 Thread mabshoff
On Mar 16, 10:37 am, mabshoff wrote: > But strangely enough when I run the documentation build I run into the > same issue you described. I am poking around to see what is > happening ... An observation: " pickling environment... done checking consistency... WARNING: /scratch/mabshoff/sage

[sage-devel] Re: Compiling the doc...

2009-03-16 Thread mabshoff
On Mar 16, 10:30 am, Florent Hivert wrote: >       Dear Michael, Hi Florent, > > This issue was fixed in the final 3.4 tarball - you should check if > > you have multiple heads in case you are truly running the final 3.4. > > Strange !!! My install is a brand new one from the following tar I

[sage-devel] Re: Compiling the doc...

2009-03-16 Thread Florent Hivert
Dear Michael, > On Mar 16, 8:09 am, Florent Hivert > wrote: > >       Dear All, > > > >    I've some trouble compiling the doc: > > > > >   File "/usr/local/sage/sage/devel/sage/doc/common/builder.py", line 498, > > in get_module_docstring_title > >     __import__(module_name) > > Impo

[sage-devel] Re: Fodder for a Sage review

2009-03-16 Thread Fredrik Johansson
On Mon, Mar 16, 2009 at 1:21 PM, Ahmed Fasih wrote: > > Greetings. This might not qualify as interesting or relevant, but for > my own research, I wrote a Sage app to calculate via Monte Carlo > approximation the Cramer-Rao bounds for estimating certain target > parameters from synthetic aperture

[sage-devel] Re: Fwd: Sage 3.4 OS 10.4 PowerPC Install Error

2009-03-16 Thread mabshoff
On Mar 16, 9:53 am, William Stein wrote: > Hi Sage-Devel, > > Here's yet *another* person that can't use our binary on OS X 10.4 > PPC.  Michael, can you change the binary name to make it clear that it > won't work? I have removed both OSX 10.4 binaries from them mirror directory (they are in

[sage-devel] Re: deprecating calling of symbolic expressions without variable names

2009-03-16 Thread Jason Grout
kcrisman wrote: > >>> I agree. As a member of the non-math-teacher part of this list, I must >>> agree that plot(some_single_var_function_or_expression, 0, 1) should be >>> considered as valid input. >> The original proposal by Carl said this would work (see point 3). >> (well, he had parentheses

[sage-devel] Re: hyperelliptic curve constructor question

2009-03-16 Thread Justin Walker
On Mar 16, 2009, at 3:04 AM, John Cremona wrote: > > I'm worried when you say that the whole schemes directory is being > "scrubbed", since this could either mean "thoroughly cleaned up to it > is sparklingly clean and beautiful" or "deleted, erased completely" as > in a well-used blackboard. >

[sage-devel] Fwd: Sage 3.4 OS 10.4 PowerPC Install Error

2009-03-16 Thread William Stein
Hi Sage-Devel, Here's yet *another* person that can't use our binary on OS X 10.4 PPC. Michael, can you change the binary name to make it clear that it won't work? Hi Tom, Currently the only way to install sage-3.4 on a G4 is to upgrade an existing install or build from source. William

[sage-devel] Re: Corrections to tutorial

2009-03-16 Thread William Stein
On Mon, Mar 16, 2009 at 8:19 AM, R (Chandra) Chandrasekhar wrote: > > Dear Folks, > > I am working my way through the Sage 3.4 Tutorial from my local copy of > it, with sage running in a terminal. > > I have encountered some pitfalls., some typographic errors, and some > mystifying errors. I am c

[sage-devel] Re: Compiling the doc...

2009-03-16 Thread mabshoff
On Mar 16, 8:09 am, Florent Hivert wrote: >       Dear All, > >    I've some trouble compiling the doc: >   File "/usr/local/sage/sage/devel/sage/doc/common/builder.py", line 498, in > get_module_docstring_title >     __import__(module_name) > ImportError: No module named quaternion_order >

[sage-devel] Re: Fodder for a Sage review

2009-03-16 Thread William Stein
On Mon, Mar 16, 2009 at 5:21 AM, Ahmed Fasih wrote: > > Greetings. This might not qualify as interesting or relevant, but for > my own research, I wrote a Sage app to calculate via Monte Carlo > approximation the Cramer-Rao bounds for estimating certain target > parameters from synthetic aperture

[sage-devel] Re: Fodder for a Sage review

2009-03-16 Thread Ahmed Fasih
Greetings. This might not qualify as interesting or relevant, but for my own research, I wrote a Sage app to calculate via Monte Carlo approximation the Cramer-Rao bounds for estimating certain target parameters from synthetic aperture radar data. MPMath's arbitrary- precision float functionality

[sage-devel] Re: hyperelliptic curve constructor question

2009-03-16 Thread John Cremona
Thanks, Justin. I wish I could have been there! John 2009/3/16 Justin Walker : > > > On Mar 16, 2009, at 3:04 AM, John Cremona wrote: > >> >> I'm worried when you say that the whole schemes directory is being >> "scrubbed", since this could either mean "thoroughly cleaned up to it >> is sparkli

[sage-devel] Re: deprecating calling of symbolic expressions without variable names

2009-03-16 Thread kcrisman
> > I agree. As a member of the non-math-teacher part of this list, I must > > agree that plot(some_single_var_function_or_expression, 0, 1) should be > > considered as valid input. > > The original proposal by Carl said this would work (see point 3). > (well, he had parentheses around the range,

[sage-devel] Re: hyperelliptic curve constructor question

2009-03-16 Thread Justin Walker
On Mar 16, 2009, at 3:04 AM, John Cremona wrote: > > I'm worried when you say that the whole schemes directory is being > "scrubbed", since this could either mean "thoroughly cleaned up to it > is sparklingly clean and beautiful" or "deleted, erased completely" as > in a well-used blackboard. >

[sage-devel] Re: deprecating calling of symbolic expressions without variable names

2009-03-16 Thread Jason Grout
Ronan Paixão wrote: > > I agree. As a member of the non-math-teacher part of this list, I must > agree that plot(some_single_var_function_or_expression, 0, 1) should be > considered as valid input. The original proposal by Carl said this would work (see point 3). (well, he had parentheses arou

[sage-devel] Re: sage days 14

2009-03-16 Thread Nicolas M. Thiery
Hi Alex, On Mon, Mar 16, 2009 at 12:04:37PM +1100, Alex Ghitza wrote: >Hi, > >On Mon, Mar 16, 2009 at 10:19 AM, Minh Nguyen >wrote: > > On the above site, I notice the following dot point: > > "credit: young people, publication record" > > I'm not sure why

[sage-devel] Corrections to tutorial

2009-03-16 Thread R (Chandra) Chandrasekhar
Dear Folks, I am working my way through the Sage 3.4 Tutorial from my local copy of it, with sage running in a terminal. I have encountered some pitfalls., some typographic errors, and some mystifying errors. I am collating these into a text file. But before I put in too much effort into it,

[sage-devel] Compiling the doc...

2009-03-16 Thread Florent Hivert
Dear All, I've some trouble compiling the doc: tomahawk-*e/sage-3.4/devel $ sage -clone doc [...] tomahawk-*e/sage-3.4/devel $ cd sage-doc tomahawk-*4/devel/sage-doc $ sage -b doc [...] tomahawk-*4/devel/sage-doc $ sage -docbuild reference html Traceback (most recent call last): File

[sage-devel] Re: SAGE possible improvement

2009-03-16 Thread Robert Dodier
Maurizio wrote: > Regarding the output of such expression you wrote, I agree that it > should give a standard unit output for each physical quantity, so by > presetting SI (or imperial, or anything else), it should give just > meters (or feets, or anything else)... I'm pretty sure that would cau

[sage-devel] Re: SAGE possible improvement

2009-03-16 Thread Jason Grout
Maurizio wrote: > Hi Fergus, > > thank you for your comments! > So, do you consider working on a Quantity porting worthwhile? It seems > that you got some good experience by working on it, so you can > probably give some better advice about the structure of that package. > > Moreover, I'm wonder

[sage-devel] Re: Power series rings

2009-03-16 Thread chris wuthrich
> sage: K. = LaurentSeriesRing(QQ) > sage: R. = PowerSeriesRing(QQ) > 3. coercion to R does not work (R(u) fails trying to coerce to QQ). I guess this is the same sort of problem as what I reported in trac #5468. chris. --~--~-~--~~~---~--~~ To post to this gro

[sage-devel] Re: hyperelliptic curve constructor question

2009-03-16 Thread David Harvey
Awesome! Looks like your patch is a little more comprehensive than what I was planning, I might pick and choose a bit :-) david On Mar 15, 11:09 pm, Nick Alexander wrote: > My wrapper that I never got around to submitting... > > Nick > >  frobenius.py > 10KViewDownload > > > > On 15-Mar-09, at

[sage-devel] Re: Fodder for a Sage review

2009-03-16 Thread David Joyner
On Mon, Mar 16, 2009 at 2:21 AM, Rob Beezer wrote: > > Sage-Devel, > > I've been asked to write a review of Sage for SIAM Review, the main > journal for the Society for Industrial and Applied Mathematics.  I'd Great news! > like to include some concrete examples of some fast and powerful > co

[sage-devel] Re: sage days 14

2009-03-16 Thread William Stein
On Mon, Mar 16, 2009 at 2:30 AM, Burcin Erocal wrote: > > Hi, > > On Mon, 16 Mar 2009 12:04:37 +1100 > Alex Ghitza wrote: > >> A meta-comment: I basically just wrote down snippets of what people >> were saying in that discussion.  I will try to go through it and >> expand a little bit.  Also for

[sage-devel] Coercion, was: element of integermod is element of integer?

2009-03-16 Thread Martin Rubey
"Nicolas M. Thiery" writes: > > > Do you foresee any occasion to meet physically all three of us? > > > > Well, at least two of us are at FPSAC 09 at RISC. > > > > (I love all these abbreviations, it feels so french :-) > > :-) > > > (3) The interpreter makes a heuristic choice which signatu

[sage-devel] Re: hyperelliptic curve constructor question

2009-03-16 Thread John Cremona
I'm worried when you say that the whole schemes directory is being "scrubbed", since this could either mean "thoroughly cleaned up to it is sparklingly clean and beautiful" or "deleted, erased completely" as in a well-used blackboard. I assume the former ;) but would appreciate it if some of the

[sage-devel] Re: hyperelliptic curve constructor question

2009-03-16 Thread John Cremona
What the code does is to assign PP to a suitable projective space. I imagine that the intention was for the user to provide the ambient space if they had it handy, so that assignment should be wrapped in "if PP is None:". John 2009/3/16 dmharvey : > > Hi, > > The constructor for hyperelliptic c

[sage-devel] Re: sage days 14

2009-03-16 Thread Burcin Erocal
Hi, On Mon, 16 Mar 2009 12:04:37 +1100 Alex Ghitza wrote: > A meta-comment: I basically just wrote down snippets of what people > were saying in that discussion. I will try to go through it and > expand a little bit. Also for the technical parts (which are > amenable to "send me a patch") I w

[sage-devel] Re: SAGE possible improvement

2009-03-16 Thread Maurizio
Hi Fergus, thank you for your comments! So, do you consider working on a Quantity porting worthwhile? It seems that you got some good experience by working on it, so you can probably give some better advice about the structure of that package. Moreover, I'm wondering how much work would it requi