[sage-devel] Re: Cannot evaluate symbolic expression numerically

2011-04-09 Thread John Cremona
The easiest way to get the number of digits of a positive integer n is len(str(n)) or even n.ndigits() ! So sage: N=10^6 sage: sum([n.ndigits() for n in srange(1,N+1)]) 596 solves your problem for all integers up to a million. This is obviously not the fastest way though! John On Apr 9, 6

[sage-devel] Cannot evaluate symbolic expression numerically

2011-04-09 Thread Alex Howard
Hi, I'm trying to create a function which outputs the number of digits you'd have to write down to write every integer from 1 up to the input value. Having defined x and z as variables I used this at one point... z(x)=((int(log(x,10)))+1)*(1+x-((10^int(log(x,10) It gets rejected as does using

Re: [sage-devel] sage and python 2.7: migration strategies?

2011-04-09 Thread Francois Bissey
It turns out that warnings are not visible to the end users anymore. This is according to the python documentation: http://docs.python.org/library/warnings.html Section 27.6.5 to be precise. Actually more explicit in http://docs.python.org/using/cmdline.html : Starting from Python 2.7, DeprecationW

[sage-devel] Big Sage Notebook Days

2011-04-09 Thread William Stein
Dear Sage Devs, Thanks to an influx of grant money, I'm organizing a "huge" Sage Days on the Sage Notebook June 13-17, 2011 in Seattle. That's in just over two months from now. If you would like to come, send me an email. Also, if you just want to come and fix lots of bugs in Sage, and perhaps

Re: [sage-devel] sage and python 2.7: migration strategies?

2011-04-09 Thread Francois Bissey
Thanks to Nicolas there is a lot of progress there. Initial test by my friend Steve has shown that test failures is way down and the problems with assertEqual seems to be mostly solved. Next we have a number of warning messages that have changed and the number of significant figures displayed by

Re: [sage-devel] Please check a new singular package with gcc 4.6.0

2011-04-09 Thread Francois Bissey
> On 04/ 9/11 11:05 AM, Dr. David Kirkby wrote: > I've found after installing the following 3 files > > http://boxen.math.washington.edu/home/kirkby/patches/singular-3-1-1-4.p5.sp > kg http://sage.math.washington.edu/home/dreyer/spkg/polybori-0.7.0.p2.spkg > http://www.stp.dias.ie/~vbraun/Sage/spk

[sage-devel] Re: has Apple effectively forked gcc?

2011-04-09 Thread John H Palmieri
On Saturday, April 9, 2011 8:11:26 AM UTC-7, Georg S. Weber wrote: > > Hi all, > > interesting thread, let me toss in my 2 cents. > > There are also Linux distributions which do not have gcc installed by > default, so users might fall into the "Cython is not usable" trap, > too. I just creat

[sage-devel] Re: has Apple effectively forked gcc?

2011-04-09 Thread Georg S. Weber
Hi all, interesting thread, let me toss in my 2 cents. There are also Linux distributions which do not have gcc installed by default, so users might fall into the "Cython is not usable" trap, too. Python, from v2.7 on, has some new module called "sysconfig" (see http://docs.python.org/dev/library

Re: [sage-devel] Please check a new singular package with gcc 4.6.0

2011-04-09 Thread Dr. David Kirkby
On 04/ 9/11 11:05 AM, Dr. David Kirkby wrote: As myself and others with gcc 4.6.0 have found, singular fails to build. http://boxen.math.washington.edu/home/kirkby/patches/singular-3-1-1-4.p5.spkg might fix this, but it needs testing. So far I've only verified it builds on OpenSolaris. I'm in

Re: [sage-devel] Please check a new singular package with gcc 4.6.0

2011-04-09 Thread Dr. David Kirkby
On 04/ 9/11 11:05 AM, Dr. David Kirkby wrote: As myself and others with gcc 4.6.0 have found, singular fails to build. http://boxen.math.washington.edu/home/kirkby/patches/singular-3-1-1-4.p5.spkg might fix this, but it needs testing. So far I've only verified it builds on OpenSolaris. I'm in

[sage-devel] Please check a new singular package with gcc 4.6.0

2011-04-09 Thread Dr. David Kirkby
As myself and others with gcc 4.6.0 have found, singular fails to build. http://boxen.math.washington.edu/home/kirkby/patches/singular-3-1-1-4.p5.spkg might fix this, but it needs testing. So far I've only verified it builds on OpenSolaris. I'm in the process of building Sage from scratch, and