Learn R Programming

mcr (version 1.2.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)

Arguments

X

first number

Y

second number

EPS

relative difference equivalent to zero

Value

difference