[sage-devel] Re: Random Reals

2007-04-03 Thread Robert Bradshaw
On Apr 3, 2007, at 6:44 AM, David Roe wrote: > Hey, > I've been looking into changing RR.random_element and > RDF.random_element to do something more sensible than create a > random integer in the range -2 to 2 and coerce it into the reals. > The reasonable thing to do for RDF seems to be t

[sage-devel] Random Reals

2007-04-03 Thread David Roe
Hey, I've been looking into changing RR.random_element and RDF.random_element to do something more sensible than create a random integer in the range -2 to 2 and coerce it into the reals. The reasonable thing to do for RDF seems to be to use GSL, create a RealDistribution and then return a random e

[sage-devel] Re: Help with SageX

2007-04-03 Thread Martin Albrecht
> cdef void reduce_entry_unsafe(self, Py_ssize_t i, Py_ssize_t j, Integer > modulus^): Just my very quick 2 cents: Is the "^" in our source? You should also remove the ":". Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.

[sage-devel] Help with SageX

2007-04-03 Thread David Roe
So, I'm trying to learn how to write Pyrex code. So far, I've been able to fit some functions into existing files, but creating new files and modules to Sage has been difficult... I'm moving polynomials to sage.rings.polynomial because there are getting to be a fair number of files for polynomial