On 9 Sep, 00:24, Steven D'Aprano <ste... at REMOVE.THIS.cybersource.com.au> wrote: > A decent vendor-supplied implementation will include error checking that > you otherwise would need to implement yourself, so yes. Not for code like this: >>> import numpy as np >>> n = np.arange(101) >>> w = 0.5*(1.0-np.cos(2*np.pi*n/(100.)))