[sage-devel] A library of wonderfully documented examples.

2008-02-16 Thread Ted Kosan
In a recent thread called "Extreme Newbie Development Questions" Jason Grout wrote: >We really ought to set up a library of wonderfully documented examples >of how to use Sage, something like the Maple application center or the >Mathematica Demonstrations project. The current list of notebooks >

[sage-devel] Re: octonion algebra

2008-02-16 Thread William Stein
On Feb 16, 2008 7:51 PM, Dan Christensen <[EMAIL PROTECTED]> wrote: > I instead worked with a class that directly implemented A_n(float) > using numpy arrays, and used weave to compile some inline C code for > the multiplication operation. (Cython/Pyrex might be just as good for > this, but I'm

[sage-devel] Re: octonion algebra

2008-02-16 Thread Dan Christensen
Eric Drechsel <[EMAIL PROTECTED]> writes: > We want to compute with octonions in Sage, and discussed at our > meeting last night possibly implementing such an algebra. > > As I understand it, multiplication of octonions can be implemented on > top of the quaternions in a simple way using the Cayl

[sage-devel] Re: discrete logs

2008-02-16 Thread David Kohel
Hi John, > I'm not sure I understand the end of your message. Nowhere does the > code I have in mind assume that anything is cyclic, let alone of prime > order: the bsgs and dlog functions will terminate if there is no > solution, with a ValueError. Since baby-step, giant-step is deterministic

[sage-devel] mpoly factoring woes

2008-02-16 Thread Joel B. Mohler
Hi, I've finally got around to polishing off the implementation I made over Christmas of multi-variate factoring over ZZ. For small cases singular (working over QQ) beats it by a large factor, but for some larger cases they become much more comparable. My favorite horrific example (in which

[sage-devel] Re: new build optimization skipping cython step

2008-02-16 Thread mabshoff
On Feb 16, 9:13 pm, "Joel B. Mohler" <[EMAIL PROTECTED]> wrote: > Hi, > > In 2.10.2.alpha0, there appears to be a small problem with the cython skipping > step. To illustrate the bug: > 1) Start with a 2.10.2.alpha0 (with padic import patch) which is built > up-to-date > 2) Add a new patch wh

[sage-devel] new build optimization skipping cython step

2008-02-16 Thread Joel B. Mohler
Hi, In 2.10.2.alpha0, there appears to be a small problem with the cython skipping step. To illustrate the bug: 1) Start with a 2.10.2.alpha0 (with padic import patch) which is built up-to-date 2) Add a new patch which adds a new .pyx file 3) sage -br 4) The bug is that you get a message l

[sage-devel] Re: Number Field generators

2008-02-16 Thread John Cremona
I agree that this would be a useful funtion to have. I would call it splitting_field() with a description similar to that of root_field() -- whose docstring does not say that self should be irreducible, though in fact it must. In the meantim you should be able to work with what is available as f

[sage-devel] Re: Number Field generators

2008-02-16 Thread Jason Grout
John Cremona wrote: > Are you sure you mean to give NumberField() two polynomials, one of > which (x) defines the trivial extension? You are only giving one name > so I rpresume what you mean (to define a quadratic field) is > > > sage: NumberField([x^2-3],'a') > Number Field in a with defining

[sage-devel] Re: Number Field generators

2008-02-16 Thread John Cremona
Are you sure you mean to give NumberField() two polynomials, one of which (x) defines the trivial extension? You are only giving one name so I rpresume what you mean (to define a quadratic field) is sage: NumberField([x^2-3],'a') Number Field in a with defining polynomial x^2 - 3 sage: F=Number

[sage-devel] Number Field generators

2008-02-16 Thread Jason Grout
Is the following output for b.gens() correct? sage: NumberField([x,x^2-3],'a') Number Field in a0 with defining polynomial x over its base field sage: b=NumberField([x,x^2-3],'a') sage: b.gens() (0, 0) To contrast: sage: c=NumberField([x^2-3, x^2-2],'a') sage: c.gens() (a0, a1) Also, this blo

[sage-devel] Re: Sage 2.10.2.alpha0 released!

2008-02-16 Thread Jaap Spies
Craig Citro wrote: >> sage -t devel/sage-main/sage/rings/number_field/number_field.py >> > > Actually, this one could be unexpected numerical noise from the code I > added in with John Voight's code. Jaap, could you post this doctest > failure, too? > Sorry I missed this message. See

[sage-devel] Re: Sage 2.10.2.alpha0 released!

2008-02-16 Thread Jaap Spies
mabshoff wrote: > >>> The patch at >>> http://trac.sagemath.org/sage_trac/attachment/ticket/1963/Sage-2.10.2... >>> fixes the import error. > > Hi Jaap > >> After applying the patch I got on Fedora 7 32 bits: >> -- >> The follo

[sage-devel] Re: Problem building 2.10.2.alpha0 when SAGE_ROOT is a symlink

2008-02-16 Thread mabshoff
On Feb 16, 6:44 am, Nick Alexander <[EMAIL PROTECTED]> wrote: > The new dependency caching code breaks when SAGE_ROOT is a symlink. > Easy fix: don't have SAGE_ROOT be a symlink. But symlink's are > convenient... > > The issue is in module_path, which doesn't recognize that SAGE_ROOT > and the