/**
 * Given a list of elements, modify the actor's representation in polar form based on the specified elements.
 *
 * @param actor Name of the actor/actress.
 * @param elements List of complex numbers representing the polar representation of the actor's elements.
 * @return The modified polar representation of the actor's elements.
 *
 * Example:
 * modifyActorElements("Johnny Depp", listOf(Pair(3, 0.785), Pair(2, 1.047), Pair(4, 1.571)))
 * // Output: listOf(Pair(6, 0.785), Pair(8, 1.047), Pair(10, 1.571))
 */
fun modifyActorElements(actor: String, elements: List<Pair<Double, Double>>): List<Pair<Double, Double>> {

    // Define the initial polar representation of the actor's elements
    val initialElements = listOf(Pair(1.0, 0.0), Pair(1.0, 0.0), Pair(1.0, 0.0))

    // Calculate the modified polar representation by multiplying the initial elements with the specified elements
    val modifiedElements = initialElements.zip(elements).map { (el, complexNum) ->
        Pair(el.first * complexNum.first, el.second + complexNum.second)
    }

    return modifiedElements
}
/**
 * Given a list of elements, modify the actor's representation in polar form based on the specified elements.
 *
 * @param actor Name of the actor/actress.
 * @param elements List of complex numbers representing the polar representation of the actor's elements.
 * @return The modified polar representation of the actor's elements.
 *
 * Example:
 * modifyActorElements("Johnny Depp", listOf(Pair(3, 0.785), Pair(2, 1.047), Pair(4, 1.571)))
 * // Output: listOf(Pair(6, 0.785), Pair(8, 1.047), Pair(10, 1.571))
 */
fun modifyActorElements(actor: String, elements: List<Pair<Double, Double>>): List<Pair<Double, Double>> {
/**
 * Given a list of elements, modify the actor's representation in polar form based on the specified elements.
 *
 * @param actor Name of the actor/actress.
 * @param elements List of complex numbers representing the polar representation of the actor's elements.
 * @return The modified polar representation of the actor's elements.
 *
 * Example:
 * modifyActorElements("Johnny Depp", listOf(Pair(3, 0.785), Pair(2, 1.047), Pair(4, 1.571)))
 * // Output: listOf(Pair(6, 0.785), Pair(8, 1.047), Pair(10, 1.571))
 */
fun modifyActorElements(actor: String, elements: List<Pair<Double, Double>>): List<Pair<Double, Double>> {

    // Define the initial polar representation of the actor's elements
    val initialElements = listOf(Pair(1.0, 0.0), Pair(1.0, 0.0), Pair(1.0, 0.0))

    // Calculate the modified polar representation by multiplying the initial elements with the specified elements
    val modifiedElements = initialElements.zip(elements).map { (el, complexNum) ->
        Pair(el.first * complexNum.first, el.second + complexNum.second)
    }

    return modifiedElements
}