mglib

Personal IDL library for M. Galloy

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

analysis/

mg_equal.pro


Routines

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

Parameters

a in required type=numeric scalar/array

first value(s) to compare

b in required type=numeric scalar/array

second value(s) to compare

Keywords

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.