[SciPy-user] "Approximately equal to" operator?

Vincent Favre-Nicolin vincefn at users.sourceforge.net
Thu Jun 8 01:16:22 CDT 2006


On Thursday 08 June 2006 06:20, Martin Spacek wrote:
> Is there a "~=" or "approximately equal to" operator that does an
> elementwise comparison of two arrays, and given a certain tolerance,
> returns a boolean array?

   You mean something like (to compare a and b): 

	abs(a-b)<1e-6

		Vincent
-- 
Vincent Favre-Nicolin
Université Joseph Fourier
http://v.favrenicolin.free.fr
ObjCryst & Fox : http://objcryst.sourceforge.net



More information about the SciPy-user mailing list