[Numpy-discussion] Re: numpy.sin

Alan G Isaac aisaac at american.edu
Thu May 25 11:47:08 EDT 2006


On Thu, 25 May 2006, Robert Kern apparently wrote: 
> The method you showed of using % (2*pi) is only accurate 
> when the values are created by multiplying the same pi by 
> another value. Otherwise, it just introduces another 
> source of error, I think.

Just to be clear, I meant not (!) to presumptuosly propose 
a method for improving thigs, but just to illustrate the 
issue: both the loss of accuracy, and the obvious conceptual 
point that there is (in an abstract sense, at least) no need 
for sin(x) and sin(x+ 2*pi) to differ.

Thanks,
Alan






More information about the NumPy-Discussion mailing list