[sage-combinat-devel] About nested functions not showing up in the doc

2014-06-11 Thread Nathann Cohen
Hello everybody ! Vincent implements in #16464 a method for Rings, which is located in Rings.Finite.ParentMethods.cyclotomic_cosets [1]. Trouble is, this function does not appear in the html documentation and I remember Nicolas having said something about that, like Sphinx does not print too

Re: [sage-combinat-devel] About nested functions not showing up in the doc

2014-06-11 Thread Nicolas M. Thiery
On Wed, Jun 11, 2014 at 11:16:17AM +0200, Nathann Cohen wrote: Hello everybody ! Vincent implements in #16464 a method for Rings, which is located inA Rings.Finite.ParentMethods.cyclotomic_cosets [1]. Trouble is, this function does not appear in the html documentation and I

Re: [sage-combinat-devel] About nested functions not showing up in the doc

2014-06-11 Thread Nathann Cohen
That's #9107, it just takes pushing through some technical latex issue according to plan stated on sage-devel ... I hope to have the time for this at some point, unless someone beats me to it! A 4 years old ticket whose last comment is 10 months old ? Cool to see that this is being solved.

[sage-combinat-devel] Re: About nested functions not showing up in the doc

2014-06-11 Thread Simon King
Hi Nathann, On 2014-06-11, Nathann Cohen nathann.co...@gmail.com wrote: A 4 years old ticket whose last comment is 10 months old ? Cool to see that this is being solved. If I recall correctly, I am (one of the) author(s). However, the ticket ran against a limitation of LaTeX that made it

Re: [sage-combinat-devel] Re: About nested functions not showing up in the doc

2014-06-11 Thread Nathann Cohen
If I recall correctly, I am (one of the) author(s). However, the ticket ran against a limitation of LaTeX that made it impossible to create the pdf reference manual with the nested classes, and I have not the faintest idea how to work around/shift these LaTeX limiations. So, if you happen to

[sage-devel] Sage and php

2014-06-11 Thread Андрей Ширшов
Hi! I'd like user input some data in my form on my site and php script give user data to sage; then sage return calculation result and user see the answer in my site. Is there any way to realize connection between sage and php script? Thanks, Andrei. -- You received this message because you

Re: [sage-devel] Sage and php

2014-06-11 Thread Kannappan Sampath
There is something called a SageCell server which does this quite effectively. There must be instructions online about how to embed a sage cell server on a given webpage. For example, see this: https://github.com/sagemath/sagecell/blob/master/doc/embedding.rst. HTH, Kannappan. On Wed, Jun 11,

Re: [sage-devel] Sage and php

2014-06-11 Thread Андрей Ширшов
Hi! Thanks for your answer! I know about SageCell, but at that case my code to evaluate should be in html code. But I'd like my code to calc will be placed on my server and user only can see graphical form only. I don't want now user can see how my app make calculation. In the feature I can

Re: [sage-devel] Sage and php

2014-06-11 Thread Андрей Ширшов
Also SageCell is based on old version of Sage that isn't good среда, 11 июня 2014 г., 11:29:35 UTC+4 пользователь Андрей Ширшов написал: Hi! Thanks for your answer! I know about SageCell, but at that case my code to evaluate should be in html code. But I'd like my code to calc will be

[sage-devel] Re: Re: Re: hash for algebraic field

2014-06-11 Thread Marc Mezzarobba
Robert Bradshaw wrote: So you would prefer sage: 4/2 == 2 False sage: 4/2 + 0/1 == 2 + 0/1 True Definitely. sage: R.x == ZZ[] sage: (x-1) * (x+1) - x^2 + 1 == 0 False I certainly agree that being able to use == 0 here is convenient. But having to write, say, eq(pol, 0) instead does

[sage-devel] Re: Sage and php

2014-06-11 Thread Dima Pasechnik
On 2014-06-11, Андрей Ширшов sh.andr@gmail.com wrote: Also SageCell is based on old version of Sage that isn't good we are looking for volunteers to maintain SageCell... BTW, it might be easier to run a modified Sage notebook server on your server than to mess around with PHP

[sage-devel] Re: Sage and php

2014-06-11 Thread Андрей Ширшов
My task is easy. There is file with my computaiton on server. For example calc.sage. If I use command sage -c calc.sage, sage will start each time I need to calculate. I need python script that can interact with running sage. For example: calc.sage: a = 10 b = 5 c = a + b server get from user

[sage-devel] Re: Re: Re: hash for algebraic field

2014-06-11 Thread Volker Braun
On Wednesday, June 11, 2014 8:40:54 AM UTC+1, Marc Mezzarobba wrote: Not that bad if x != 1 throws an exception. Besides, Java programmers have had a similar problem forever and can apparently live with it... Comparisons in Java are probably one of the #1 traps for the unwary (and

[sage-devel] Re: Re: Re: hash for algebraic field

2014-06-11 Thread mmarco
Since we already have Sequence, and Set, which mimic list and set but performing coercion on all its elements, would it be wise to also have Dict? Or even change Sequence to List and make Sequence inmutable? -- You received this message because you are subscribed to the Google Groups

Re: [sage-devel] Re: Re: Re: hash for algebraic field

2014-06-11 Thread Erik Massop
On Wed, 11 Jun 2014 05:14:40 -0700 (PDT) mmarco mma...@unizar.es wrote: Since we already have Sequence, and Set, which mimic list and set but performing coercion on all its elements, would it be wise to also have Dict? Or even change Sequence to List and make Sequence inmutable? It seems

[sage-devel] Re: Re: Re: hash for algebraic field

2014-06-11 Thread Marc Mezzarobba
Volker Braun wrote: Comparisons in Java are probably one of the #1 traps for the unwary (and inconsistent between primitives and objects). But at least for objects, Java == is just the Python is. And .equals() is Python ==. So there you have your two comparisons already. Really, you are

[sage-devel] Re: hash for algebraic field

2014-06-11 Thread leif
Marc Mezzarobba wrote: Robert Bradshaw wrote: So you would prefer sage: 4/2 == 2 False sage: 4/2 + 0/1 == 2 + 0/1 True Definitely. sage: R.x == ZZ[] sage: (x-1) * (x+1) - x^2 + 1 == 0 False I certainly agree that being able to use == 0 here is convenient. But having to write, say,

[sage-devel] Re: hash for algebraic field

2014-06-11 Thread Nils Bruin
On Wednesday, June 11, 2014 10:15:23 AM UTC-7, leif wrote: Not that bad if x != 1 throws an exception. Yep, I'd prefer such behaviour as well. It isn't for explicit equality checks, but the wide use of @cachedmethod means that many objects that are passed as arguments (so that's almost

[sage-devel] Re: hash for algebraic field

2014-06-11 Thread Marc Mezzarobba
Nils Bruin wrote: It isn't for explicit equality checks, but the wide use of @cachedmethod means that many objects that are passed as arguments (so that's almost all sage objects at some point) can end up as (part of) dictionary keys, without the user explicitly asking for it. This requires

Re: [sage-devel] Re: Re: Re: hash for algebraic field

2014-06-11 Thread Robert Bradshaw
On Wed, Jun 11, 2014 at 12:42 AM, Marc Mezzarobba m...@mezzarobba.net wrote: Robert Bradshaw wrote: So you would prefer sage: 4/2 == 2 False sage: 4/2 + 0/1 == 2 + 0/1 True Definitely. sage: R.x == ZZ[] sage: (x-1) * (x+1) - x^2 + 1 == 0 False I certainly agree that being able to

[sage-devel] Hard time building sage to review a ticket

2014-06-11 Thread Julien Puydt
Hi, I wanted to help review #14364. So I cloned sage, checked out the ticket's branch, exported SAGE_ATLAS_LIB and MAKE, then make. Failure: some packages (cvxopt and scipy from memory) don't find the linear algebra libs. Fair enough, I started again, without SAGE_ATLAS_LIB this time. Of