/**
 * This exercise aims to help you practice working with positive integers and the polar representation of complex numbers.
 *
 * You are given the magnitude and angle of a complex number in polar form. Your task is to write a function that finds the real part of the complex number.
 *
 * The formula to convert a complex number from polar form to rectangular form is:
 * real_part = magnitude * cos(angle)
 *
 * Complete the 'findRealPart' function to calculate and return the real part of the complex number.
 *
 * @param magnitude The magnitude of the complex number.
 * @param angle The angle (in radians) of the complex number.
 * @return The real part of the complex number.
 */
fun findRealPart(magnitude: Double, angle: Double): Double {

    val realPart = magnitude * Math.cos(angle)
    return realPart
}
/**
 * This exercise aims to help you practice working with positive integers and the polar representation of complex numbers.
 *
 * You are given the magnitude and angle of a complex number in polar form. Your task is to write a function that finds the real part of the complex number.
 *
 * The formula to convert a complex number from polar form to rectangular form is:
 * real_part = magnitude * cos(angle)
 *
 * Complete the 'findRealPart' function to calculate and return the real part of the complex number.
 *
 * @param magnitude The magnitude of the complex number.
 * @param angle The angle (in radians) of the complex number.
 * @return The real part of the complex number.
 */
fun findRealPart(magnitude: Double, angle: Double): Double {
/**
 * This exercise aims to help you practice working with positive integers and the polar representation of complex numbers.
 *
 * You are given the magnitude and angle of a complex number in polar form. Your task is to write a function that finds the real part of the complex number.
 *
 * The formula to convert a complex number from polar form to rectangular form is:
 * real_part = magnitude * cos(angle)
 *
 * Complete the 'findRealPart' function to calculate and return the real part of the complex number.
 *
 * @param magnitude The magnitude of the complex number.
 * @param angle The angle (in radians) of the complex number.
 * @return The real part of the complex number.
 */
fun findRealPart(magnitude: Double, angle: Double): Double {

    val realPart = magnitude * Math.cos(angle)
    return realPart
}