Re: [sage-devel] Problem building 4.8

2012-03-28 Thread William Stein
What does "./sage -gdb", then running sage, then typing "bt" when it crashes show? On Thu, Mar 29, 2012 at 7:12 AM, Starx wrote: > So I planned to build a new copy of 4.8 and then try out -upgrade to > get beta11... but I couldn't build 4.8!! I got the following after > the build: > > Testing t

[sage-devel] Problem building 4.8

2012-03-28 Thread Starx
So I planned to build a new copy of 4.8 and then try out -upgrade to get beta11... but I couldn't build 4.8!! I got the following after the build: Testing that Sage starts... [2012-03-28 22:52:38] Sage version 4.8, released 2012-01-20 -

Re: [sage-devel] Re: Fwd: NaN = Not A Number ???

2012-03-28 Thread Gonzalo Tornaria
On Thu, Mar 22, 2012 at 4:14 PM, Robert Bradshaw wrote: > ... > This is horrendous. Better to not have this "constant" (at least not > in the global namespace) than behavior like this. The top level NaN, > if we want one, could be in RR (precision doesn't really matter for > this value). Agreed,

Re: [sage-devel] workshop in Japan

2012-03-28 Thread Dan Drake
On Thu, 29 Mar 2012 at 09:47AM +0900, Yasuhide Numata wrote: > Now we are planning a Sage workshop in Japan on May 26--27. The > workshop includes a tutorial, demonstration and so on. The main > purpose of the workshop is to increase the number of Japanese users > and/or developers of Sage. All of

[sage-devel] workshop in Japan

2012-03-28 Thread Yasuhide Numata
Dear all. Now we are planning a Sage workshop in Japan on May 26--27. The workshop includes a tutorial, demonstration and so on. The main purpose of the workshop is to increase the number of Japanese users and/or developers of Sage. All of talks will be in Japanese. We want to call the workshop S

Re: [sage-devel] creating custom subclasses of polynomial rings

2012-03-28 Thread Michael Orlitzky
On 03/28/2012 06:14 PM, Mark Shimozono wrote: Suppose I want to create a custom subclass of a polynomial ring. From which class should it inherit? It should not care so much about the eventual base ring. I'm a sage development newbie. Where can I read about the class hierarchy for sage polynomi

Re: [sage-devel] Re: Add matplotlib as dependency of cvxopt (#12742) needs review

2012-03-28 Thread John H Palmieri
On Wednesday, March 28, 2012 3:51:42 PM UTC-7, Jeroen Demeyer wrote: > > On 2012-03-28 17:08, leif wrote: > > Simply making CVXOPT depend on matplotlib is certainly easier, but > > IMHO not really appropriate since the former *builds* without the > > latter. > I don't see the problem. What's the

Re: [sage-devel] Re: Add matplotlib as dependency of cvxopt (#12742) needs review

2012-03-28 Thread Jeroen Demeyer
On 2012-03-28 17:08, leif wrote: > Simply making CVXOPT depend on matplotlib is certainly easier, but > IMHO not really appropriate since the former *builds* without the > latter. I don't see the problem. What's the harm with the easy solution? -- To post to this group, send an email to sage-dev

[sage-devel] creating custom subclasses of polynomial rings

2012-03-28 Thread Mark Shimozono
Suppose I want to create a custom subclass of a polynomial ring. >From which class should it inherit? It should not care so much about the eventual base ring. I'm a sage development newbie. Where can I read about the class hierarchy for sage polynomials? I'm a little confused at the organizational

Re: [sage-devel] Re: Deleting depreciated is_functions

2012-03-28 Thread Florent Hivert
On Wed, Mar 28, 2012 at 11:27:24PM +0200, Nicolas M. Thiery wrote: > On Wed, Mar 28, 2012 at 05:39:51AM -0700, David Kohel wrote: > > Doing some magic to make 'QQ^2 in VectorSpaces' work > > might just do injustice to first-time users, since it defers > > the realization that they just made a typo

Re: [sage-devel] Re: Deleting depreciated is_functions

2012-03-28 Thread Nicolas M. Thiery
On Wed, Mar 28, 2012 at 05:39:51AM -0700, David Kohel wrote: > Doing some magic to make 'QQ^2 in VectorSpaces' work > might just do injustice to first-time users, since it defers > the realization that they just made a typo -- unless > VectorSpaces is no longer a Python class: > > sage: VectorSpac

[sage-devel] Re: [sage-combinat-devel] a problem with cartesian product of directed graphs ?

2012-03-28 Thread Nicolas M. Thiery
On Wed, Mar 28, 2012 at 01:36:11AM -0700, Frédéric Chapoton wrote: >I have found the following wrong behaviour on sage 4.8, without >sage-combinat > >sage: P=DiGraph([[0,1]]) >sage: Q=P.cartesian_product(P) >sage: len(Q.edges()) >0 > >The result is a

Re: [sage-devel] All known bugs in Sage silently producing wrong answers

2012-03-28 Thread Ondřej Čertík
On Wed, Mar 21, 2012 at 11:56 AM, William Stein wrote: [...] > * Trac 9505: > > sage: var('x,y,z'); f=x*y*z > (x, y, z) > sage: f.coeff(x) > y*z > sage: f.coeff(x*y) > 0 > > This is by definition in GINAC (and Maxima), but is surprising and > confusing, e.g., one expects to get z above, and Mathem

[sage-devel] Re: Add matplotlib as dependency of cvxopt (#12742) needs review

2012-03-28 Thread leif
On 28 Mrz., 17:08, leif wrote: > On 28 Mrz., 12:31, "dahl.joac...@gmail.com" > wrote: > > > matplotlib is only used for some of the examples with CVXOPT; there is no > > reason to introduce such a dependency.  If it's a matter of automated > > tests,  then it would be much better to comment out t

[sage-devel] Re: Add matplotlib as dependency of cvxopt (#12742) needs review

2012-03-28 Thread leif
On 28 Mrz., 12:31, "dahl.joac...@gmail.com" wrote: > matplotlib is only used for some of the examples with CVXOPT; there is no > reason to introduce such a dependency.  If it's a matter of automated > tests,  then it would be much better to comment out the > plotting in the few examples. I'd also

[sage-devel] Re: All known bugs in Sage silently producing wrong answers

2012-03-28 Thread David Kohel
Hi, Here's one: sage: K. = NumberField(x-2/3) sage: K.is_prime_field() False The code is just a bit too naive: Source: def is_prime_field(self): r""" Return True if this ring is one of the prime fields `\QQ` or ` \GF{p}`. ... """ return False i.e. i

[sage-devel] Re: categories and element classes

2012-03-28 Thread David Kohel
Hi Alex, This is a historical legacy of a heavy-handed attempt by William and me to implement schemes "from the book" (aka Hartshorne): sage: A = AffineSpace(2, ZZ) sage: p = A(0, 0) sage: p.parent().category().element_class sage: type(p) It is mathematically correct to say that a point is a s

[sage-devel] Re: Deleting depreciated is_functions

2012-03-28 Thread David Kohel
Hi, 1. (On Sage syntax): For the record, there are some reasons why ZZ in Fields doesn't (and perhaps shouldn't) make sense: Fields is a function not the category it returns: sage: Fields sage: Fields() Category of fields I think a student learning Sage should have a first session in which the

Re: [sage-devel] Re: Add matplotlib as dependency of cvxopt (#12742) needs review

2012-03-28 Thread Julien Puydt
Le mercredi 28 mars, dahl.joac...@gmail.com a écrit: > matplotlib is only used for some of the examples with CVXOPT; there > is no reason to introduce such a dependency. If it's a matter of > automated tests, then it would be much better to comment out the > plotting in the few examples. Both m

[sage-devel] Re: Add matplotlib as dependency of cvxopt (#12742) needs review

2012-03-28 Thread dahl.joac...@gmail.com
matplotlib is only used for some of the examples with CVXOPT; there is no reason to introduce such a dependency. If it's a matter of automated tests, then it would be much better to comment out the plotting in the few examples. Den tirsdag den 27. marts 2012 09.03.49 UTC+2 skrev Jeroen Demeye

[sage-devel] Re: Deleting depreciated is_functions

2012-03-28 Thread Keshav Kini
Florent Hivert writes: >> sage: ZZ in Fields >> False >> sage: ZZ in Fields() >> False >> sage: QQ in Fields >> True >> sage: QQ in Fields() >> True >> >> I don't pretend to understand why this is the case :) But maybe it's >> better if we tell new users to use `ZZ

Re: [sage-devel] Re: Deleting depreciated is_functions

2012-03-28 Thread Florent Hivert
Hi Keshav, > Incidentally, `ZZ in Fields` works just fine:: > > sage: 5/1 in ZZ > True > sage: 5/1 in ZZ() > > --- > TypeError Traceback (most recent call > last) >