[SciPy-dev] accuracy problem in filterdesign.py
oliphant.travis at ieee.org
Sun Mar 24 18:58:53 CST 2002
On Sunday 24 March 2002 02:38 pm, you wrote:
> while writing a test driver for a minimum phase calculation routine I came
> across the following problem. It is causing asymmetriesin the output of
> >>> N=512
> >>> lastpoint=2*pi
> >>> w1=arange(0,lastpoint,lastpoint/N)
> >>> w2=arange(0,N)*(lastpoint/N)
> >>> lastpoint-w1-w1
> >>> lastpoint-w2-w2
> >>> w1
> >>> w2
> >>> w2-w1
I just fixed this in Numeric.
The arange in Numeric used to increment the value by the step amount. It now
computes the value using value = start + i*step which fixes the problem.
Thanks for pointing this out.
More information about the Scipy-dev