Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes



top mg_equal

result = mg_equal(a, b [, tolerance=numeric])

Determines whether two values are equal, or within a given tolerance.

Return value

1 if the two values are within the tolerance, 0 if not; for array values calculates the Euclidean distance between the two arrays or array and scalar


a in required type=numeric scalar/array

first value(s) to compare

b in required type=numeric scalar/array

second value(s) to compare


tolerance in optional type=numeric default=machine precision

tolerance within which the two values are considered equal

File attributes

Modification date: Wed May 14 15:07:14 2014
Lines: 10
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.