Re: [Numpy-discussion] Precision/value change moving from C to Python

2013-11-13 Thread Daπid
On 13 November 2013 02:40, Bart Baker wrote: > > That is the order of the machine epsilon for double, that looks like > roundoff > > errors to me. > > > I'm trying to my head around this. So does that mean that neither of > them is "right", that it is just the result of doing the same > calculati

Re: [Numpy-discussion] Precision/value change moving from C to Python

2013-11-12 Thread Bart Baker
> The issue is that there are some minor (10^-16) differences in the > values when I do the calculation in C vs Python.  > > That is the order of the machine epsilon for double, that looks like roundoff > errors to me. Hi Daπid, Thanks for the reply. That does make sense. I'm trying t

Re: [Numpy-discussion] Precision/value change moving from C to Python

2013-11-12 Thread Daπid
On 12 November 2013 12:01, Bart Baker wrote: > The issue is that there are some minor (10^-16) differences in the > values when I do the calculation in C vs Python. > That is the order of the machine epsilon for double, that looks like roundoff errors to me. I found similar results cythonising

[Numpy-discussion] Precision/value change moving from C to Python

2013-11-12 Thread Bart Baker
Hi all, First time posting. I've been working on a class for solving a group of affine models and decided to drop down to C for a portion of the code for improved performance. There are two questions that I've had come up from this. 1) I've written the section of code, which involved a series o