[sage-devel] Re: hash for algebraic field

2014-06-12 Thread Marc Mezzarobba
Robert Bradshaw wrote: >> sage: x = SR.var('x') >> sage: bool(arctan(1+abs(x)) == pi/2 - arctan(1/(1+abs(x >> False > > Better returning True when the CAS isn't strong enough to prove > equality (which may well be most of the time). Sure. But why not have sage: bool(sin(x)^2+cos(x)^2==1) Tru

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

2014-06-12 Thread leif
Julien Puydt wrote: I wanted to help review #14364. The (very old) testjava.sh foo, or was that a typo? So I cloned sage, Not immediately clear to me what you mean by that; which version of Sage? Already built and up-to-date? checked out the ticket's branch, exported SAGE_ATLAS_LIB an

[sage-devel] Is _hash_ used?

2014-06-12 Thread Erik Massop
Dear list, The tutorial[1] mentions - More generally, Sage-specific special methods are usually named ``_meth_`` rather than ``__meth__``. For example, lots of classes implement ``_hash_`` which is used and cached by ``__hash__``. This seemed a bit strange to me, as I have seen __hash__ quite of

[sage-devel] PDF manual Vs proper documentation of categories

2014-06-12 Thread Nathann Cohen
Hello guys ! I wanted to ask you if you had ever found the pdf version of the manual useful for anything, or if we could just give it up. The problem we have is that the category/ folder contains things like class A: class B: class C: class D: def Hey():

[sage-devel] Re: PDF manual Vs proper documentation of categories

2014-06-12 Thread Nathann Cohen
(remember that removing the pdf manual can also save trees, for it is likely that some people got the idea to print these files :-P) On 12 June 2014 14:43, Nathann Cohen wrote: > Hello guys ! > > I wanted to ask you if you had ever found the pdf version of the manual > useful for anything, or i

Re: [sage-devel] Re: PDF manual Vs proper documentation of categories

2014-06-12 Thread John Cremona
The Magma Handbook has 5583 pages -- remember the mission statement! Of course I never look at the Sage pdf reference (OK, I just did -- it is rather beautiful) John On 12 June 2014 13:45, Nathann Cohen wrote: > (remember that removing the pdf manual can also save trees, for it is likely > that

[sage-devel] Re: PDF manual Vs proper documentation of categories

2014-06-12 Thread Simon King
Hi Nathann, On 2014-06-12, Nathann Cohen wrote: > (remember that removing the pdf manual can also save trees, for it is > likely that some people got the idea to print these files :-P) Some people print html pages... Anyway: I have never used the pdf manual, and if it is correct that the line w

[sage-devel] Re: PDF manual Vs proper documentation of categories

2014-06-12 Thread Volker Braun
I don't usually read the pdf docs either, but it is the only test that the math in doctstrings actually validates. Sphnix doesn't know if the `\frac{1}{2}` in the doctstring is admissible math, and if not it'll only fail in the browser when the end-user tries to read the docs... On Thursday

Re: [sage-devel] Re: PDF manual Vs proper documentation of categories

2014-06-12 Thread John Cremona
On 12 June 2014 14:54, Volker Braun wrote: > I don't usually read the pdf docs either, but it is the only test that the > math in doctstrings actually validates. Sphnix doesn't know if the > `\frac{1}{2}` in the doctstring is admissible math, and if not it'll only > fail in the browser when the en

[sage-devel] Re: hash for algebraic field

2014-06-12 Thread Nils Bruin
On Thursday, June 12, 2014 12:48:37 AM UTC-7, Marc Mezzarobba wrote: > > Sure. But why not have > > sage: bool(sin(x)^2+cos(x)^2==1) > True > > return False as well, and let the user test that > > (rhs-lhs).simplify_full() == 0 > That would probably be even desirable if you want to make SR mo

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

2014-06-12 Thread Julien Puydt
Hi, Le 12/06/2014 10:12, leif a écrit : Julien Puydt wrote: I wanted to help review #14364. The (very old) testjava.sh foo, or was that a typo? So I cloned sage, Not immediately clear to me what you mean by that; which version of Sage? Already built and up-to-date? checked out the tick

Re: [sage-devel] Re: PDF manual Vs proper documentation of categories

2014-06-12 Thread kcrisman
On Thursday, June 12, 2014 10:03:55 AM UTC-4, John Cremona wrote: > > On 12 June 2014 14:54, Volker Braun > > wrote: > > I don't usually read the pdf docs either, but it is the only test that > the > > math in doctstrings actually validates. Sphnix doesn't know if the > > `\frac{1}{2}` in th

Re: [sage-devel] Re: PDF manual Vs proper documentation of categories

2014-06-12 Thread Nathann Cohen
> +1 to this argument. Indeed, it is a good argument. We have to do something about this undocumented functions, though. Oh, and it would be cool if --warn-links was the default for doc building, too :-P Nathann -- You received this message because you are subscribed to the Google Groups "sa

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

2014-06-12 Thread Volker Braun
Sounds like your gcc is broken... try "export SAGE_INSTALL_GCC=yes && make" On Thursday, June 12, 2014 4:48:43 PM UTC+1, Snark wrote: > > make > > I followed them again today, and it failed again, this time in ppl > because "'ptrdiff_t' does not name a type" -- so not the same problem. > > -

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

2014-06-12 Thread Robert Bradshaw
On Thu, Jun 12, 2014 at 8:41 AM, Nils Bruin wrote: > On Thursday, June 12, 2014 12:48:37 AM UTC-7, Marc Mezzarobba wrote: >> >> Sure. But why not have >> >> sage: bool(sin(x)^2+cos(x)^2==1) >> True >> >> return False as well, and let the user test that >> >> (rhs-lhs).simplify_full() == 0 > > That

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

2014-06-12 Thread Robert Bradshaw
On Thu, Jun 12, 2014 at 12:50 AM, Marc Mezzarobba wrote: > But here is a similar example right from the Sage library (adapted from > http://wiki.sagemath.org/EqualityCoercion): > > sage: FiniteEnumeratedSet(GF(3)) > {0, 1, 2} > sage: add(FiniteEnumeratedSet([0,1,2])) > 0 Um, isn't that what you

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

2014-06-12 Thread Vincent Delecroix
2014-06-12 19:10 UTC+02:00, Robert Bradshaw : > On Thu, Jun 12, 2014 at 8:41 AM, Nils Bruin wrote: >> On Thursday, June 12, 2014 12:48:37 AM UTC-7, Marc Mezzarobba wrote: >>> >>> Sure. But why not have >>> >>> sage: bool(sin(x)^2+cos(x)^2==1) >>> True >>> >>> return False as well, and let the user

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

2014-06-12 Thread Vincent Delecroix
2014-06-12 19:13 UTC+02:00, Robert Bradshaw : > On Thu, Jun 12, 2014 at 12:50 AM, Marc Mezzarobba > wrote: > >> But here is a similar example right from the Sage library (adapted from >> http://wiki.sagemath.org/EqualityCoercion): >> >> sage: FiniteEnumeratedSet(GF(3)) >> {0, 1, 2} >> sage: add(Fi

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

2014-06-12 Thread William Stein
On Thu, Jun 12, 2014 at 10:19 AM, Vincent Delecroix <20100.delecr...@gmail.com> wrote: > 2014-06-12 19:13 UTC+02:00, Robert Bradshaw : >> On Thu, Jun 12, 2014 at 12:50 AM, Marc Mezzarobba >> wrote: >> >>> But here is a similar example right from the Sage library (adapted from >>> http://wiki.sagem

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

2014-06-12 Thread Volker Braun
On Thursday, June 12, 2014 6:44:44 PM UTC+1, William wrote: > > > sage: sum(FiniteEnumeratedSet([0,1,2])) > > 3 > > sage: FiniteEnumeratedSet(GF(3)) > > sage: sum(FiniteEnumeratedSet([0,1,2])) > > 0 > > But I would rather blame the use of caching rather than equality > testing. The issue i

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

2014-06-12 Thread Julien Puydt
Hi, Le 12/06/2014 18:42, Volker Braun a écrit : Sounds like your gcc is broken... try "export SAGE_INSTALL_GCC=yes && make" Oh! Excellent point! I have gcc 4.9.0, which is a fairly recent version! Trying to compile sage 6.2 with it (from the tarball) ; adding -k to the MAKE export so I get a

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

2014-06-12 Thread leif
Julien Puydt wrote: Hi, Le 12/06/2014 18:42, Volker Braun a écrit : Sounds like your gcc is broken... try "export SAGE_INSTALL_GCC=yes && make" Oh! Excellent point! I have gcc 4.9.0, which is a fairly recent version! Trying to compile sage 6.2 with it (from the tarball) ; adding -k to the MA

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

2014-06-12 Thread Robert Bradshaw
On Thu, Jun 12, 2014 at 10:19 AM, Vincent Delecroix <20100.delecr...@gmail.com> wrote: > 2014-06-12 19:13 UTC+02:00, Robert Bradshaw : >> On Thu, Jun 12, 2014 at 12:50 AM, Marc Mezzarobba >> wrote: >> >>> But here is a similar example right from the Sage library (adapted from >>> http://wiki.sagem

[sage-devel] Re: hash for algebraic field

2014-06-12 Thread Nils
Volker Braun gmail.com> writes: > > sage: FiniteEnumeratedSet(GF(3)) > > sage: sum(FiniteEnumeratedSet([0,1,2])) > > 0 > But I would rather blame the use of caching rather than equality > testing. > Just removing the caching here isn't that easy, FiniteEnumeratedSet really is just a UniqueReprese

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

2014-06-12 Thread Ralf Hemmecke
>>> I'll second this. Are there *any* computer algebra systems (or >>> programming languages for that matter) out there such that 4/2 != 2 != >>> 2.0? Code would simply be too hard to write. >> >> Ada, I guess. It should give error if you try to compare integer with float. > > Ah, no wonder it's s