/**
 * Check if the difference between a and b is within epsilon.
 */
fun withinEpsilon(a: Double, b: Double, epsilon: Double): Boolean {

    return Math.abs(a - b) < epsilon
}

val epsilons = listOf(1e-1, 1e-5, 1e-10, 1e-15)
val tuples = listOf(0.1 to 0.2, 0.3 to 0.4, 1.0 to 1.0 + epsilons[0])  // List of tuples with floating-point errors

// Find intersection of tuples containing numbers with a floating-point
/**
 * Check if the difference between a and b is within epsilon.
 */
fun withinEpsilon(a: Double, b: Double, epsilon: Double): Boolean {
/**
 * Check if the difference between a and b is within epsilon.
 */
fun withinEpsilon(a: Double, b: Double, epsilon: Double): Boolean {

    return Math.abs(a - b) < epsilon
}

val epsilons = listOf(1e-1, 1e-5, 1e-10, 1e-15)
val tuples = listOf(0.1 to 0.2, 0.3 to 0.4, 1.0 to 1.0 + epsilons[0])  // List of tuples with floating-point errors

// Find intersection of tuples containing numbers with a floating-point