Learn R Programming

mcr (version 1.3.3.1)

calcDiff: Calculate difference between two numeric vectors that gives exactly zero for very small relative differences.

Description

Calculate difference between two numeric vectors that gives exactly zero for very small relative differences.

Usage

calcDiff(X, Y, EPS = 1e-12)

Value

difference

Arguments

X

first number

Y

second number

EPS

relative difference equivalent to zero