/**
 * This function checks if a given value is approximately equal to zero within a certain epsilon value.
 * It repeatedly subtracts epsilon from the value until the value becomes smaller than epsilon.
 */
fun checkUntilEpsilon(value: Double, epsilon: Double): Double {

    var result = value
    while (true) {
        result -= epsilon
        if (result < epsilon) {
            break
        }
    }
    return result
}
/**
 * This function checks if a given value is approximately equal to zero within a certain epsilon value.
 * It repeatedly subtracts epsilon from the value until the value becomes smaller than epsilon.
 */
fun checkUntilEpsilon(value: Double, epsilon: Double): Double {
/**
 * This function checks if a given value is approximately equal to zero within a certain epsilon value.
 * It repeatedly subtracts epsilon from the value until the value becomes smaller than epsilon.
 */
fun checkUntilEpsilon(value: Double, epsilon: Double): Double {

    var result = value
    while (true) {
        result -= epsilon
        if (result < epsilon) {
            break
        }
    }
    return result
}