/**
 * Given an error margin 'e' and a floating-point number 'x', this function checks if x is within that error margin of zero or not.
 *
 * @param e The error margin.
 * @param x The floating-point number to be checked.
 * @return A string indicating whether x is within the error margin or not.
 */
fun floatErrorAndEpsilon(e: Float, x: Float): String {

    return when {
        Math.abs(x) < e -> "x is approximately zero."
        Math.abs(x) > e -> "x is not zero."
        Math.abs(x) == e -> "x is exactly on the error margin."
        else -> "Error occurred."
    }
}
/**
 * Given an error margin 'e' and a floating-point number 'x', this function checks if x is within that error margin of zero or not.
 *
 * @param e The error margin.
 * @param x The floating-point number to be checked.
 * @return A string indicating whether x is within the error margin or not.
 */
fun floatErrorAndEpsilon(e: Float, x: Float): String {
/**
 * Given an error margin 'e' and a floating-point number 'x', this function checks if x is within that error margin of zero or not.
 *
 * @param e The error margin.
 * @param x The floating-point number to be checked.
 * @return A string indicating whether x is within the error margin or not.
 */
fun floatErrorAndEpsilon(e: Float, x: Float): String {

    return when {
        Math.abs(x) < e -> "x is approximately zero."
        Math.abs(x) > e -> "x is not zero."
        Math.abs(x) == e -> "x is exactly on the error margin."
        else -> "Error occurred."
    }
}