/**
 * This exercise requires creating a tuple from a string representing a complex number in polar representation.
 * The input string will be in the form 'r∠θ', where 'r' represents the magnitude and 'θ' represents the angle in degrees.
 * The function should return a tuple in the format (r, θ) with the correct values converted from the input string.
 */
fun tuplePolarRepresentation(complexNumber: String): Pair<Double, Double> {

    // Extracting the magnitude and angle from the input string
    val (magnitudeStr, angleStr) = complexNumber.split("∠")
    val magnitude = magnitudeStr.trim().toDouble()
    val angle = angleStr.trim().toDouble()

    // Converting the angle from degrees to radians
    val angleRadians = (angle * 3.14159) / 180

    // Creating the pair with the converted values
    return Pair(magnitude, angleRadians)
}

// Example usage
/**
 * This exercise requires creating a tuple from a string representing a complex number in polar representation.
 * The input string will be in the form 'r∠θ', where 'r' represents the magnitude and 'θ' represents the angle in degrees.
 * The function should return a tuple in the format (r, θ) with the correct values converted from the input string.
 */
fun tuplePolarRepresentation(complexNumber: String): Pair<Double, Double> {
/**
 * This exercise requires creating a tuple from a string representing a complex number in polar representation.
 * The input string will be in the form 'r∠θ', where 'r' represents the magnitude and 'θ' represents the angle in degrees.
 * The function should return a tuple in the format (r, θ) with the correct values converted from the input string.
 */
fun tuplePolarRepresentation(complexNumber: String): Pair<Double, Double> {

    // Extracting the magnitude and angle from the input string
    val (magnitudeStr, angleStr) = complexNumber.split("∠")
    val magnitude = magnitudeStr.trim().toDouble()
    val angle = angleStr.trim().toDouble()

    // Converting the angle from degrees to radians
    val angleRadians = (angle * 3.14159) / 180

    // Creating the pair with the converted values
    return Pair(magnitude, angleRadians)
}

// Example usage