function approxEqual(actual, expected, tolerance = epsilon) {
    return relativeError(actual, expected) <= tolerance;
}
Approximate equality.

@param {number} actual The value to be tested.
@param {number} expected The reference value.
@param {number} tolerance The acceptable relative difference.
@return {boolean} Whether numbers are within tolerance.