Re: [sage-devel] Proving 1 equals 0 shouldn't be possible

2011-05-22 Thread David Kirkby
On 21 May 2011 10:35, Juanlu001 wrote: > Yesterday I was playing with symbolic expressions, and I had to apply > divide_both_sides(), and I encountered something funny: you can divide > by zero (with a bit of care). To show this, I've taken the classic > "proof" and created a worksheet: > > http:/

[sage-devel] Re: pickling vs. default attributes

2011-05-22 Thread Simon King
On 23 Mai, 02:45, Kwankyu Lee wrote: > Then my worry is > that the "translating" code may clutter the main code implementing the > objects. No. The main code implementing the objects is not touched by pickling/ unpickling. > I feel that there should be some infrastructure to guide writing > the

Re: [sage-devel] Doctest failures if using GSL 1.15

2011-05-22 Thread David Kirkby
On 23 May 2011 03:05, François wrote: > OK I did some analysis on the failure of > sage -t -long -force_lib "devel/sage/sage/gsl/interpolation.pyx" > > A list of point is initialized with: > v = [(i + sin(i)/2, i+cos(i^2)) for i in range(10)] > then a spline is created: > s = spline(v) > The failu

Re: [sage-devel] Re: Doctest failures if using GSL 1.15

2011-05-22 Thread David Kirkby
On 23 May 2011 05:51, Rob Beezer wrote: > On May 22, 7:26 pm, François wrote: >> If I am not mistaken about the meaning of the distribution_function method >> gsl may have actually corrected a bug and +oo is actually the value you are >> supposed to get, see this >> graph:http://en.wikipedia.org

Re: [sage-devel] Re: category subclassing problem

2011-05-22 Thread Christian Nassau
Hi Simon, Thanks for this little expose - I'm just beginning to warm up to the category framework so this is very helpful. Cheers, Christian -- http://www.nullhomotopie.de -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to s

[sage-devel] Re: Doctest failures if using GSL 1.15

2011-05-22 Thread Rob Beezer
On May 22, 7:26 pm, François wrote: > If I am not mistaken about the meaning of the distribution_function method > gsl may have actually corrected a bug and +oo is actually the value you are > supposed to get, see this > graph:http://en.wikipedia.org/wiki/File:Chi-square_distributionPDF.svg > Wou

Re: [sage-devel] Doctest failures if using GSL 1.15

2011-05-22 Thread François
And in the other test we actually look at the chi squared distribution for k=1: sage: nu = 1 sage: T = RealDistribution('chisquared', nu) sage: T.get_random_element() # random 0.103230507883 sage: T.distribution_function(0) 0.0 If I am not mistaken

Re: [sage-devel] Doctest failures if using GSL 1.15

2011-05-22 Thread François
OK I did some analysis on the failure of sage -t -long -force_lib "devel/sage/sage/gsl/interpolation.pyx" A list of point is initialized with: v = [(i + sin(i)/2, i+cos(i^2)) for i in range(10)] then a spline is created: s = spline(v) The failure is when we try this: show(point(v) + plot(s,0,11, h

[sage-devel] Re: pickling vs. default attributes

2011-05-22 Thread Kwankyu Lee
Hi Simon, It seems to me that Your remarks: If the internal data structure has changed, then it is imperative that data stored in the old format will be correctly translated into the new format when unpickling. ... "upgrading the old objects pickled by users" must be part of the usual unpickl

Re: [sage-devel] category subclassing problem

2011-05-22 Thread Nicolas M. Thiery
On Sun, May 22, 2011 at 11:37:17AM +0200, Christian Nassau wrote: > Thanks a lot for these hints! I need to implement a category of > multi-graded modules/algebras over a Hopf algebra (the Steenrod > algebra, specifically), so I thought subclassing AlgebrasWithBasis > would be a good idea... I've n

[sage-devel] Re: [Ecls-list] Problems building Maxima with ECL on Cygwin.

2011-05-22 Thread Juan Jose Garcia-Ripoll
On Thu, Apr 28, 2011 at 7:30 AM, Dr. David Kirkby wrote: > Hi, > it has been reported that there are issues in trying to build Maxima on > Cygwin > using ECL. Does this look like an ECL issue. See error message at > > http://trac.sagemath.org/sage_trac/ticket/11260 > I can confirm that this is _n

Re: [sage-devel] Doctest failures if using GSL 1.15

2011-05-22 Thread Dr. David Kirkby
On 05/20/11 08:40 PM, Francois wrote: I created a package of The GNU Scientific library (GSL) 1.15, which was released a few weeks ago) and put it here. http://boxen.math.washington.edu/home/kirkby/patches/gsl-1.15.spkg I tried to build sage-4.7.rc3 using this version of gsl rather than the ol

[sage-devel] Re: category subclassing problem

2011-05-22 Thread Simon King
Hi Christian, On 22 Mai, 11:37, Christian Nassau wrote: > (I did notice that there already is a category for graded modules, but > it seems to be largely empty. I suppose that framework is still in the > making.) It depends on what you want to do with the categories. Perhaps you are already hap

[sage-devel] Re: Speeding up attribute access for parents and elements: Is an error message necessarily a string?

2011-05-22 Thread Simon King
Hi Florent, On 22 Mai, 10:37, Florent Hivert wrote: > I had a very similar problem with the test suite error messages which sometimg > slowed sown the suite but several order of magnitude. I solved this issue in > #8742 by creating a class for lazy format string. I'm not sure this will solve > yo

Re: [sage-devel] category subclassing problem

2011-05-22 Thread Christian Nassau
Hi Nicolas, Thanks a lot for these hints! I need to implement a category of multi-graded modules/algebras over a Hopf algebra (the Steenrod algebra, specifically), so I thought subclassing AlgebrasWithBasis would be a good idea... I've now followed your example instead, and it all seems to wo

[sage-devel] sage build : Error testing package ** python-2.6.4.p9 **

2011-05-22 Thread Digvijay Patankar
Hi all, I am trying to build sage4.6.2 from source. I get the following error and sage is not building. As the message tells : the python is installed properly but test on it fails. Because of which sage is also unable to build. Here is info about my system : Fedora : 2.6.34.8-68.fc13.i686.PAE gc

Re: [sage-devel] Speeding up attribute access for parents and elements: Is an error message necessarily a string?

2011-05-22 Thread Florent Hivert
Hi Simon, > This post has two purposes: An advertisement for trac ticket #11342, > and a technical question about a trick used in that ticket. > > First, the question. > > Usually, an error is raised with an error message. And thus, the cdef > function sage.structure.parent.raise_att

[sage-devel] Speeding up attribute access for parents and elements: Is an error message necessarily a string?

2011-05-22 Thread Simon King
Hi! This post has two purposes: An advertisement for trac ticket #11342, and a technical question about a trick used in that ticket. First, the question. Usually, an error is raised with an error message. And thus, the cdef function sage.structure.parent.raise_attribute_error(P,name) first crea

[sage-devel] Re: pickling vs. default attributes

2011-05-22 Thread Simon King
Hi Kwankyu On 22 Mai, 07:11, Kwankyu Lee wrote: > I want to be more informed about this pickled Sage objects stored in the > pickle jar. First let me explain what I understand. The pickle jar is there > to ensure that upgrading Sage does not break unpickling of Sage objects > pickled in a previou