/**
 * Given a complex number in polar representation,
 * calculate the real part using the formula:
 * real_part = complexNumber.first * cos(complexNumber.second)
 *
 * @param complexNumber A Pair containing the magnitude and angle of the complex number in polar form.
 * @return The real part of the complex number.
 */
import kotlin.math.cos


fun calculateRealPart(complexNumber: Pair<Double, Double>): Double {

    return complexNumber.first * cos(complexNumber.second)
}
import kotlin.math.cos

/**
 * Given a complex number in polar representation,
 * calculate the real part using the formula:
 * real_part = complexNumber.first * cos(complexNumber.second)
 *
 * @param complexNumber A Pair containing the magnitude and angle of the complex number in polar form.
 * @return The real part of the complex number.
 */
fun calculateRealPart(complexNumber: Pair<Double, Double>): Double {
import kotlin.math.cos

/**
 * Given a complex number in polar representation,
 * calculate the real part using the formula:
 * real_part = complexNumber.first * cos(complexNumber.second)
 *
 * @param complexNumber A Pair containing the magnitude and angle of the complex number in polar form.
 * @return The real part of the complex number.
 */
fun calculateRealPart(complexNumber: Pair<Double, Double>): Double {

    return complexNumber.first * cos(complexNumber.second)
}