/**
 * Determines if two floating-point numbers are equal within a small epsilon value.
 *
 * @param a The first floating-point number.
 * @param b The second floating-point number.
 * @return True if the numbers are equal within epsilon, False otherwise.
 */
fun equal(a: Double, b: Double): Boolean {

    // Define a small epsilon value
    val epsilon = 1e-9

    // Check if the absolute difference between the numbers is less than epsilon
    return Math.abs(a - b) < epsilon
}
/**
 * Determines if two floating-point numbers are equal within a small epsilon value.
 *
 * @param a The first floating-point number.
 * @param b The second floating-point number.
 * @return True if the numbers are equal within epsilon, False otherwise.
 */
fun equal(a: Double, b: Double): Boolean {
/**
 * Determines if two floating-point numbers are equal within a small epsilon value.
 *
 * @param a The first floating-point number.
 * @param b The second floating-point number.
 * @return True if the numbers are equal within epsilon, False otherwise.
 */
fun equal(a: Double, b: Double): Boolean {

    // Define a small epsilon value
    val epsilon = 1e-9

    // Check if the absolute difference between the numbers is less than epsilon
    return Math.abs(a - b) < epsilon
}