/**
 * A function to calculate the relative error between the actual and calculated volume of an object.
 *
 * @param actualVolume The actual volume of the object.
 * @param calculatedVolume The calculated volume of the object.
 * @return The calculated relative error.
 */
fun calculateError(actualVolume: Double, calculatedVolume: Double): Double {

    // Calculate the relative error using the formula: error = |(actualVolume - calculatedVolume) / actualVolume| * 100
    val error = Math.abs(actualVolume - calculatedVolume) / actualVolume * 100

    return error
}

// Assume the actual volume of a cylinder is 113.0976 cubic units
val actualVolume = 113.0976
/**
 * A function to calculate the relative error between the actual and calculated volume of an object.
 *
 * @param actualVolume The actual volume of the object.
 * @param calculatedVolume The calculated volume of the object.
 * @return The calculated relative error.
 */
fun calculateError(actualVolume: Double, calculatedVolume: Double): Double {
/**
 * A function to calculate the relative error between the actual and calculated volume of an object.
 *
 * @param actualVolume The actual volume of the object.
 * @param calculatedVolume The calculated volume of the object.
 * @return The calculated relative error.
 */
fun calculateError(actualVolume: Double, calculatedVolume: Double): Double {

    // Calculate the relative error using the formula: error = |(actualVolume - calculatedVolume) / actualVolume| * 100
    val error = Math.abs(actualVolume - calculatedVolume) / actualVolume * 100

    return error
}

// Assume the actual volume of a cylinder is 113.0976 cubic units
val actualVolume = 113.0976