equal {exams.forge} | R Documentation |
Conditional Value Matching
Description
It performs a comparison by checking if either abs(x - y) < tol
when outer == FALSE
,
or if an a
exists or a y[j]
for each x[i]
such that the condition abs(x[i] - y[j]) < tol
is satisfied.
Usage
equal(x, y, tol = 1e-06, outer = FALSE)
approx_equal(x, y, tol = 1e-06, outer = FALSE)
Arguments
x |
numeric |
y |
numeric |
tol |
numeric: tolerance (default: |
outer |
logical: compares directly or verifies whether |
Value
logical
Examples
equal(9*1/9, 1)
[Package exams.forge version 1.0.10 Index]