/**
 * This function compares two measurements and returns true if they are within a certain epsilon value of each other,
 * and false otherwise.
 *
 * @param measurement1 The first measurement.
 * @param measurement2 The second measurement.
 * @param epsilon The maximum allowed difference between the measurements.
 * @return true if the measurements are within epsilon of each other, false otherwise.
 */
fun compareMeasurements(measurement1: Double, measurement2: Double, epsilon: Double): Boolean {

    return Math.abs(measurement1 - measurement2) < epsilon
}

// Exercise
/**
 * This function compares two measurements and returns true if they are within a certain epsilon value of each other,
 * and false otherwise.
 *
 * @param measurement1 The first measurement.
 * @param measurement2 The second measurement.
 * @param epsilon The maximum allowed difference between the measurements.
 * @return true if the measurements are within epsilon of each other, false otherwise.
 */
fun compareMeasurements(measurement1: Double, measurement2: Double, epsilon: Double): Boolean {
/**
 * This function compares two measurements and returns true if they are within a certain epsilon value of each other,
 * and false otherwise.
 *
 * @param measurement1 The first measurement.
 * @param measurement2 The second measurement.
 * @param epsilon The maximum allowed difference between the measurements.
 * @return true if the measurements are within epsilon of each other, false otherwise.
 */
fun compareMeasurements(measurement1: Double, measurement2: Double, epsilon: Double): Boolean {

    return Math.abs(measurement1 - measurement2) < epsilon
}

// Exercise