Re: [Numpy-discussion] longdouble (float96) literals

2010-08-18 Thread josef . pktd
On Wed, Aug 18, 2010 at 11:07 AM, David Cournapeau wrote: > On Wed, Aug 18, 2010 at 11:52 PM,   wrote: >> On Wed, Aug 18, 2010 at 10:36 AM, Charles R Harris >> wrote: >>> >>> >>> On Wed, Aug 18, 2010 at 8:25 AM, Colin Macdonald >>> wrote: On 08/18/10 15:14, Charles R Harris wrote:

Re: [Numpy-discussion] longdouble (float96) literals

2010-08-18 Thread David Cournapeau
On Wed, Aug 18, 2010 at 11:52 PM, wrote: > On Wed, Aug 18, 2010 at 10:36 AM, Charles R Harris > wrote: >> >> >> On Wed, Aug 18, 2010 at 8:25 AM, Colin Macdonald >> wrote: >>> >>> On 08/18/10 15:14, Charles R Harris wrote: >>> > However, the various constants supplied by numpy, pi and such, are

Re: [Numpy-discussion] longdouble (float96) literals

2010-08-18 Thread josef . pktd
On Wed, Aug 18, 2010 at 10:58 AM, Charles R Harris wrote: > > > On Wed, Aug 18, 2010 at 8:54 AM, Matthieu Brucher > wrote: >> >> I don't think there is longdouble on Windows, is there? >>> np.longdouble >>> np.longdouble(5).itemsize 12 >>> np.double(5).itemsize 8 >> > > The MSVC compilers don

Re: [Numpy-discussion] longdouble (float96) literals

2010-08-18 Thread Charles R Harris
On Wed, Aug 18, 2010 at 8:54 AM, Matthieu Brucher < matthieu.bruc...@gmail.com> wrote: > I don't think there is longdouble on Windows, is there? > > The MSVC compilers don't support extended precision, or rather, long doubles are the same as doubles. I don't know what other compilers on windows do

Re: [Numpy-discussion] longdouble (float96) literals

2010-08-18 Thread Matthieu Brucher
I don't think there is longdouble on Windows, is there? Matthieu 2010/8/18 : > On Wed, Aug 18, 2010 at 10:36 AM, Charles R Harris > wrote: >> >> >> On Wed, Aug 18, 2010 at 8:25 AM, Colin Macdonald >> wrote: >>> >>> On 08/18/10 15:14, Charles R Harris wrote: >>> > However, the various constants

Re: [Numpy-discussion] longdouble (float96) literals

2010-08-18 Thread josef . pktd
On Wed, Aug 18, 2010 at 10:36 AM, Charles R Harris wrote: > > > On Wed, Aug 18, 2010 at 8:25 AM, Colin Macdonald > wrote: >> >> On 08/18/10 15:14, Charles R Harris wrote: >> > However, the various constants supplied by numpy, pi and such, are >> > full precision. >> >> no, they are not.  My examp

Re: [Numpy-discussion] longdouble (float96) literals

2010-08-18 Thread Charles R Harris
On Wed, Aug 18, 2010 at 8:25 AM, Colin Macdonald wrote: > On 08/18/10 15:14, Charles R Harris wrote: > > However, the various constants supplied by numpy, pi and such, are > > full precision. > > no, they are not. My example demonstrated that numpy.pi is only > double precision. > > Hmm, the full

Re: [Numpy-discussion] longdouble (float96) literals

2010-08-18 Thread Colin Macdonald
On 08/18/10 15:14, Charles R Harris wrote: > However, the various constants supplied by numpy, pi and such, are > full precision. no, they are not. My example demonstrated that numpy.pi is only double precision. Thanks for your help so far. Colin ___

Re: [Numpy-discussion] longdouble (float96) literals

2010-08-18 Thread Charles R Harris
On Wed, Aug 18, 2010 at 7:37 AM, Colin Macdonald wrote: > On 08/18/10 13:43, Charles R Harris wrote: > > > > > > On Wed, Aug 18, 2010 at 3:46 AM, Colin Macdonald > > mailto:macdon...@maths.ox.ac.uk>> wrote: > > > > How can I enter longdouble (float96) literals into my python/numpy > > prog

Re: [Numpy-discussion] longdouble (float96) literals

2010-08-18 Thread Colin Macdonald
On 08/18/10 13:43, Charles R Harris wrote: > > > On Wed, Aug 18, 2010 at 3:46 AM, Colin Macdonald > mailto:macdon...@maths.ox.ac.uk>> wrote: > > How can I enter longdouble (float96) literals into my python/numpy > programs? In C, I would postfix such numbers with 'L', but this gives >

Re: [Numpy-discussion] longdouble (float96) literals

2010-08-18 Thread Charles R Harris
On Wed, Aug 18, 2010 at 3:46 AM, Colin Macdonald wrote: > How can I enter longdouble (float96) literals into my python/numpy > programs? In C, I would postfix such numbers with 'L', but this gives > a SyntaxError in python. > > The rest of my message is just two examples of what I'm talking about

[Numpy-discussion] longdouble (float96) literals

2010-08-18 Thread Colin Macdonald
How can I enter longdouble (float96) literals into my python/numpy programs? In C, I would postfix such numbers with 'L', but this gives a SyntaxError in python. The rest of my message is just two examples of what I'm talking about in case its not clear. Thanks, Colin ---