[sage-devel] Re: Ascii Output

2012-11-12 Thread Andrey Novoseltsev
It would be nice actually to have it available in Sage and support classes with _latex_ but no _repr_ - right now it is OK to have the opposite, i.e. define _repr_ and then it is used wrapped as verbatim text for _latex_, if no special method is provided. I wrote several classes recently whose outp

[sage-devel] Re: analytic_rank() discussed on mathoverflow

2012-11-12 Thread Dima Pasechnik
On 2012-11-13, Nils Bruin wrote: > On Nov 12, 6:06 pm, Dima Pasechnik wrote: >> sage: e.cremona_label() >> '457532830151317a1' >> sage: e.analytic_rank(leading_coefficient=True) >> (4, -2.50337480324368498e-9) >> >> here is what I got after some hours of running. >> e-9 does not look as suspicios

Re: [sage-devel] Re: How to proceed to reduce Sage's memory leaking?

2012-11-12 Thread Michael Welsh
On 13/11/2012, at 4:16 PM, Nils Bruin wrote: > > Incidentally: Are PPC-OSX4 (or where-ever the problem earlier arose) > and i686 both 32 bit platforms? Yes. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post to this group, send email to sa

[sage-devel] Re: How to proceed to reduce Sage's memory leaking?

2012-11-12 Thread Nils Bruin
On Nov 12, 1:47 pm, Jeroen Demeyer wrote: > And for added fun: this time the error isn't always reproducible. That's excellent news! Just keep trying until it's not reproducible anymore. Then we're fine! Seriously though, given that the bug pops up in the same file as before indicates that proba

[sage-devel] Re: analytic_rank() discussed on mathoverflow

2012-11-12 Thread Nils Bruin
On Nov 12, 6:06 pm, Dima Pasechnik wrote: > sage: e.cremona_label() > '457532830151317a1' > sage: e.analytic_rank(leading_coefficient=True) > (4, -2.50337480324368498e-9) > > here is what I got after some hours of running. > e-9 does not look as suspiciosuly small to me... That depends on what th

[sage-devel] Re: analytic_rank() discussed on mathoverflow

2012-11-12 Thread Dima Pasechnik
On 2012-11-12, Nils Bruin wrote: > On Nov 12, 9:46 am, Dima Pasechnik wrote: >> please have a look (and perhaps reply - I am not an expert on this >> stuff): > > It has to check that a certain analytic function vanishes to 8th order > at a particular point. That involves proving that all its deri

[sage-devel] Re: Is this a bug in multipoly _div_?

2012-11-12 Thread P Purkayastha
On 11/13/2012 04:48 AM, Nils Bruin wrote: On Nov 12, 10:07 am, P Purkayastha wrote: +inv = self.base_ring()(1)/self.base_ring()(right) It's probably more efficient to do: inv = self.base_ring().one()/self.base_ring()(right) since it completely avoids the coercion framework for

Re: [sage-devel] Best practices for scientific computing

2012-11-12 Thread Raniere Gaia Silva
Hi Nicolas, thanks for the article. Raniere -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post to this group, send email to sage-devel@googlegroups.com. To unsubscribe from this group, send email to sage-devel+unsubscr...@googlegroups.com.

Re: [sage-devel] Ascii Output

2012-11-12 Thread David Roe
Maxima will use ascii-art to print expressions ( http://www.sagemath.org/doc/reference/sage/interfaces/maxima.html), but it will just leave sqrt as sqrt. I don't know a way to get an ascii art representation for sqrt. David On Mon, Nov 12, 2012 at 8:22 AM, Andreas Ruscheinski < andreas.ruschein.

Re: [sage-devel] How to proceed to reduce Sage's memory leaking?

2012-11-12 Thread Jeroen Demeyer
Bad news again. During a preliminary test of sage-5.5.beta2, I got again a segmentation fault in devel/sage/sage/schemes/elliptic_curves/ell_number_field.py but this time on a different system (arando: Linux i686) and with a different set of patches as before. And for added fun: this time the error

[sage-devel] Re: Is this a bug in multipoly _div_?

2012-11-12 Thread Nils Bruin
On Nov 12, 10:07 am, P Purkayastha wrote: > +            inv = self.base_ring()(1)/self.base_ring()(right) It's probably more efficient to do: inv = self.base_ring().one()/self.base_ring()(right) since it completely avoids the coercion framework for constructing 1. -- You received this messa

[sage-devel] Re: Debugging Cython code

2012-11-12 Thread Nils Bruin
On Nov 12, 12:33 pm, Nils Bruin wrote: > Does this need a "cydb" wrapper around gdb or does gdb have its > own customization options that allow something along these lines? I should have googled before I replied: http://docs.cython.org/src/userguide/debugging.html It would be great if someone w

[sage-devel] Re: Debugging Cython code

2012-11-12 Thread Nils Bruin
On Nov 12, 12:08 pm, Jason Grout wrote: > I think you can also use gdb; it seems I've done it once before, at least. I have used gdb for stack examination after a segfault. For "C-like" pieces of Cython it works quite well. For "Python-like" pieces it's horrible, because python objects are virtua

Re: [sage-devel] Re: Debugging Cython code

2012-11-12 Thread Robert Bradshaw
On Mon, Nov 12, 2012 at 12:08 PM, Jason Grout wrote: > On 11/12/12 12:26 PM, Raniere Gaia Silva wrote: >> >> Hi, >> how is the easy way to debug a Cython code? > > > I insert print statements, think really hard, insert more print statements, > etc. This is what I typically do. > I think you can

[sage-devel] Re: Debugging Cython code

2012-11-12 Thread Jason Grout
On 11/12/12 12:26 PM, Raniere Gaia Silva wrote: Hi, how is the easy way to debug a Cython code? I insert print statements, think really hard, insert more print statements, etc. I think you can also use gdb; it seems I've done it once before, at least. Thanks, Jason -- You received this m

[sage-devel] Re: Is this a bug in multipoly _div_?

2012-11-12 Thread Ben Hutz
That seems like it fixes the symptoms, but I'm not sure if it is the source of the problem. For example, the following already works without the fix. sage: R.=PolynomialRing(QQ) sage: S.=PolynomialRing(R) sage: x/S(2) 1/2*x That being said, I wasn't able to come up with an example that break

[sage-devel] Debugging Cython code

2012-11-12 Thread Raniere Gaia Silva
Hi, how is the easy way to debug a Cython code? Thanks, Raniere -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post to this group, send email to sage-devel@googlegroups.com. To unsubscribe from this group, send email to sage-devel+unsubscr..

[sage-devel] Re: Is this a bug in multipoly _div_?

2012-11-12 Thread P Purkayastha
On 11/13/2012 02:07 AM, P Purkayastha wrote: On 11/13/2012 01:06 AM, Ben Hutz wrote: The following works sage: R.=PolynomialRing(QQ) sage: S.=PolynomialRing(R) sage: x/S(2) x/2 The following does not sage: R.=PolynomialRing(QQ) sage: S.=PolynomialRing(R) sage: x/S(2) Traceback (most recent ca

[sage-devel] Re: Is this a bug in multipoly _div_?

2012-11-12 Thread P Purkayastha
On 11/13/2012 01:06 AM, Ben Hutz wrote: The following works sage: R.=PolynomialRing(QQ) sage: S.=PolynomialRing(R) sage: x/S(2) x/2 The following does not sage: R.=PolynomialRing(QQ) sage: S.=PolynomialRing(R) sage: x/S(2) Traceback (most recent call last): ... AttributeError: 'int' object has

[sage-devel] Re: analytic_rank() discussed on mathoverflow

2012-11-12 Thread Nils Bruin
On Nov 12, 9:46 am, Dima Pasechnik wrote: > please have a look (and perhaps reply - I am not an expert on this > stuff): It has to check that a certain analytic function vanishes to 8th order at a particular point. That involves proving that all its derivatives up to 7th order vanish at the point

[sage-devel] Re: Is this a bug in multipoly _div_?

2012-11-12 Thread Volker Braun
This is yet another inconsistency with multivariate vs. univariate polynomial rings. They are implemented differently, so its easy to fall into these traps. I don't have any better idea than hope that it gets ironed out over time... On Monday, November 12, 2012 12:06:29 PM UTC-5, Ben Hutz wr

[sage-devel] analytic_rank() discussed on mathoverflow

2012-11-12 Thread Dima Pasechnik
please have a look (and perhaps reply - I am not an expert on this stuff): http://mathoverflow.net/questions/112154/what-cases-say-about-the-analytic-rank-of-rank-8-elliptic-curve-457532830151317a -- You received this message because you are subscribed to the Google Groups "sage-devel" group.

[sage-devel] Re: Ascii Output

2012-11-12 Thread Nils Bruin
On Nov 12, 7:21 am, Andrea Lazzarotto wrote: > > is there any method which gives me an Ascii output for a > > mathematical-express like sqrt(x)? You can use some of maxima's capabilities for that: sage: maxima(x^(1/x)).display2d() 1/x

[sage-devel] Is this a bug in multipoly _div_?

2012-11-12 Thread Ben Hutz
The following works sage: R.=PolynomialRing(QQ) sage: S.=PolynomialRing(R) sage: x/S(2) x/2 The following does not sage: R.=PolynomialRing(QQ) sage: S.=PolynomialRing(R) sage: x/S(2) Traceback (most recent call last): ... AttributeError: 'int' object has no attribute 'parent' Seems

[sage-devel] Re: Ubuntu 12.10 - 404 Not found

2012-11-12 Thread Jan Groenewald
Hi To sage:devel I got feedback that this works, at least superficially. This is slightly incorrect (running a binary BUILT on 12.04 for RUNTIME USE on 12.10). However the gcc and libc version differences between 12.04 and 12.10 are so small you may experience no problems at all. Last time we ex

Re: [sage-devel] Re: ** Upgrading 5.3 -> 5.4 broken **

2012-11-12 Thread Jeroen Demeyer
On 2012-11-12 17:23, John H Palmieri wrote: > Isn't it only broken on systems for which SAGE_ROOT/local/lib64 and/or > SAGE_ROOT/local/lib32 are used? Indeed. I didn't know that OS X doesn't use these directories. -- You received this message because you are subscribed to the Google Groups "sage

[sage-devel] Re: ** Upgrading 5.3 -> 5.4 broken **

2012-11-12 Thread John H Palmieri
On Sunday, November 11, 2012 11:48:48 PM UTC-8, Jeroen Demeyer wrote: > > Upgrading from sage-5.3 to sage-5.4 is broken if you installed GCC in > sage-5.3 and you moved the Sage installation tree after building GCC but > before upgrading. This problem will be fixed in sage-5.4.1 (there is a >

Re: [sage-devel] Re: Ubuntu 12.10 - 404 Not found

2012-11-12 Thread Thierry Dumont
Le 12/11/2012 15:42, Jan Groenewald a écrit : Dear Silliwane, The Sage PPA has not yet been updated for 12.10. It currently only has 12.04 support. I hope to work on this soon, but that might mean early next year; I am not sure yet. In the meantime, try this: sudo sed -ie 's/quantal/precise/g'

[sage-devel] Re: New iOS app is up

2012-11-12 Thread Jason Grout
On 11/12/12 9:16 AM, Ivan Andrus wrote: I could make the Evaluate button always available on the iPad (which is where you use it right?). Yes, I'm using it on the iPad. Thanks, Jason -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post t

[sage-devel] Ascii Output

2012-11-12 Thread Andreas Ruscheinski
Hello, is there any method to get an ascii out put for an expression? eg: sqrt(x) = \/ -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post to this group, send email to sage-devel@googlegroups.com. To unsubscribe from this group, send email t

Re: [sage-devel] New iOS app is up

2012-11-12 Thread Ivan Andrus
On Nov 12, 2012, at 4:16 PM, Ivan Andrus wrote: > On Nov 12, 2012, at 3:57 PM, Jason Grout wrote: > >> On 11/11/12 5:09 PM, Ivan Andrus wrote: >>> A substantial rewrite of the iOS app is in the iTunes store [1]. It >>> uses the new server and supports interacts! It handles output a >>> little

Re: [sage-devel] Ascii Output

2012-11-12 Thread Andrea Lazzarotto
2012/11/12 Andreas Ruscheinski > is there any method which gives me an Ascii output for a > mathematical-express like sqrt(x)? This one looks nice: http://asciitex.sourceforge.net/ -- *Andrea Lazzarotto* - http://andrealazzarotto.com* * -- You received this message because you are subscribe

Re: [sage-devel] Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Andrea Lazzarotto
2012/11/12 Jan Groenewald > The 4G limit: http://www.remastersys.com/ubuntu.html see the section > titled "The 4GB limit explained - not a remastersys limitation". > I see. Well, maybe there is another way to workaround the issue. After you've added the required software on the disc, you could u

Re: [sage-devel] New iOS app is up

2012-11-12 Thread Ivan Andrus
On Nov 12, 2012, at 3:57 PM, Jason Grout wrote: > On 11/11/12 5:09 PM, Ivan Andrus wrote: >> A substantial rewrite of the iOS app is in the iTunes store [1]. It >> uses the new server and supports interacts! It handles output a >> little different (it uses a web page instead of plain text or im

[sage-devel] Ascii Output

2012-11-12 Thread Andreas Ruscheinski
Hello, is there any method which gives me an Ascii output for a mathematical-express like sqrt(x)? \/ -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post to this group, send email to sage-devel@googlegroups.com. To unsubscribe from this gr

Re: [sage-devel] Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Jan Groenewald
Hi I will have a look, definitely, thanks. The 4G limit: http://www.remastersys.com/ubuntu.html see the section titled "The 4GB limit explained - not a remastersys limitation". Regards, Jan On 12 November 2012 16:53, Andrea Lazzarotto wrote: > 2012/11/12 Jan Groenewald > >> Do you know much

[sage-devel] Re: New iOS app is up

2012-11-12 Thread Jason Grout
On 11/11/12 5:09 PM, Ivan Andrus wrote: A substantial rewrite of the iOS app is in the iTunes store [1]. It uses the new server and supports interacts! It handles output a little different (it uses a web page instead of plain text or image) so it can also handle more than one image as well as t

Re: [sage-devel] Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Andrea Lazzarotto
2012/11/12 Jan Groenewald > Do you know much of it? Does it allow > 1) to surpass a 4G limit? > Do you mean the size of the ISO? I think yes. The distro I made as a project for my high school graduation stays under 4 GB so I can't confirm it, but you can check it to see a lot of customizations i

Re: [sage-devel] Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Jan Groenewald
Hi Yes. The reason is I have not started looking closely enough to know about UCK. Reference: http://sourceforge.net/projects/uck/ Do you know much of it? Does it allow 1) to surpass a 4G limit? 2) to do a standard install from the ISO, including creating users, it simply adds extra packages tra

[sage-devel] Re: Ubuntu 12.10 - 404 Not found

2012-11-12 Thread Jan Groenewald
Dear Silliwane, The Sage PPA has not yet been updated for 12.10. It currently only has 12.04 support. I hope to work on this soon, but that might mean early next year; I am not sure yet. In the meantime, try this: sudo sed -ie 's/quantal/precise/g' /etc/apt/sources.list.d/aims-sagemath-quantal.li

Re: [sage-devel] Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Andrea Lazzarotto
2012/11/12 Nicolas M. Thiery > That's a question for Jan Groenewald :-) Yes I'm sorry, I didn't look at the conversation list very well! -- *Andrea Lazzarotto* - http://andrealazzarotto.com* * -- You received this message because you are subscribed to the Google Groups "sage-devel" group.

Re: [sage-devel] Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Nicolas M. Thiery
On Mon, Nov 12, 2012 at 02:10:37PM +0100, Andrea Lazzarotto wrote: > > I also hit the problem that Macs don't boot from USB, which IMHO is > > completely retarded, but that's just life. > >One could simply burn a PLOP boot manager CD and then use it to >boot from USB. The only ex

Re: [sage-devel] Re: Changing the default behaviour of Poset

2012-11-12 Thread Nicolas M. Thiery
On Mon, Nov 12, 2012 at 02:22:59PM +0100, Marco Streng wrote: >2012/11/12 Nicolas M. Thiery > > First thing: for those who want to know more on what a facade is: > > sage: S = Sets() > sage: S.Facade? > >Object `S.Facade` not found. >It should be: >sage: S

[sage-devel] Re: New iOS app is up

2012-11-12 Thread Jason Grout
On 11/11/12 5:09 PM, Ivan Andrus wrote: A substantial rewrite of the iOS app is in the iTunes store [1]. It uses the new server and supports interacts! It handles output a little different (it uses a web page instead of plain text or image) so it can also handle more than one image as well a

Re: [sage-devel] Re: Changing the default behaviour of Poset

2012-11-12 Thread Marco Streng
2012/11/12 Nicolas M. Thiery > > > First thing: for those who want to know more on what a facade is: > > sage: S = Sets() > sage: S.Facade? > > Object `S.Facade` not found. It should be: sage: S.Facades? -- You received this message because you are subscribed to the Google Groups "sa

Re: [sage-devel] Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Andrea Lazzarotto
I don't understand where this quote came from because this is being cross-posted ( =.= ) through mailing lists, and I don't follow all of them, but... 2012/11/12 Nicolas M. Thiery > > I also hit the problem that Macs don't boot from USB, which IMHO is > > completely retarded, but that's just lif

Re: [sage-devel] Re: Changing the default behaviour of Poset

2012-11-12 Thread Nicolas M. Thiery
On Mon, Nov 12, 2012 at 05:03:58AM +, Dima Pasechnik wrote: > On 2012-11-11, Nathann Cohen wrote: > > I spent many hours fighting with Posets under Sage. I enjoyed it a lot, but > > I can already tell that it gets on Florent's and Nicolas' nerves, and so I > > was thinking of whether I should

Re: [sage-devel] Re: Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Nicolas M. Thiery
Hi Jan, Thanks for all the information and all your work making Sage easier to install! On the next similar occasion, we should also investigate aims-desktop, either through DVD installs or by running a local Ubuntu + PPA mirror. There still is the problem that installing a dual boot requi

Re: [sage-devel] Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Nicolas M. Thiery
On Mon, Nov 12, 2012 at 10:31:47AM +0100, Jeroen Demeyer wrote: > The pre-compiled binaries *should* work on old processors. If not, > that's a bug which should be reported. Ah, good to know! I don't remember myself if we had issues with the processors themselves, or only with distro-related issu

Re: [sage-devel] Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Nicolas M. Thiery
On Mon, Nov 12, 2012 at 10:28:02AM +0100, Jeroen Demeyer wrote: > On 2012-11-11 10:00, Nicolas M. Thiery wrote: > > (a) failed most of the time on Linux by lack of gfortran. > Since sage-5.4, gfortran is no longer a requirement (see #13515), so > this will become easier in the future. Great! One p

[sage-devel] Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Nicolas M. Thiery
Hi Andrey, On Sun, Nov 11, 2012 at 08:37:50PM -0800, Andrey Novoseltsev wrote: > Thanks a lot for such a detailed report! :-) > Is it possible to have step-by-step instructions for > self-replicating USB sticks posted somewhere? Thierry Monteil, who worked hard on that key and should ge

[sage-devel] Re: Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Nicolas M. Thiery
On Sun, Nov 11, 2012 at 08:07:06PM -0800, Mike Zabrocki wrote: >Wow! Nicolas fantastic report. That was a challenge to do. Thanks :-) > I hope you managed a convert or two in Africa. My experience with > computer classes as part of a summer school (in Ghana, Kenya, > Tanzania and Madagascar)

Re: [sage-devel] Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Jeroen Demeyer
On 2012-11-11 10:00, Nicolas M. Thiery wrote: > - Precompiled binary for Linux: besides the usual distro-specific > binaries, it would be very helpful to have two (32bit / 64bit) fat > Sage binaries that would work without dependencies on as many > distros and processors as possible. The pre-

Re: [sage-devel] Sage Days in Bobo-Dioulasso debriefing; Sage in developping countries

2012-11-12 Thread Jeroen Demeyer
On 2012-11-11 10:00, Nicolas M. Thiery wrote: > (a) failed most of the time on Linux by lack of gfortran. Since sage-5.4, gfortran is no longer a requirement (see #13515), so this will become easier in the future. -- You received this message because you are subscribed to the Google Groups "sage

Re: [sage-devel] Two sage-location related tickets need review

2012-11-12 Thread Jeroen Demeyer
These two tickets still need review: On 2012-09-16 20:54, Jeroen Demeyer wrote: > #13452: Refactor sage-location > Some various clean-up of sage-location, in particular: >1. Don't use realpath() or abspath() everywhere. Just once should be > more than sufficient. >2. Merge initialize_pkgco