/**
 * This function takes two complex numbers as input and returns the product of the two numbers.
 *
 * @param complexNum1 A pair representing the first complex number with real and imaginary parts.
 * @param complexNum2 A pair representing the second complex number with real and imaginary parts.
 * @return A pair representing the product of the two complex numbers with real and imaginary parts.
 */
fun complexNumberMultiplication(complexNum1: Pair<Int, Int>, complexNum2: Pair<Int, Int>): Pair<Int, Int> {

    val (realPart1, imaginaryPart1) = complexNum1
    val (realPart2, imaginaryPart2) = complexNum2

    // Perform complex number multiplication
    val productReal = realPart1 * realPart2 - imaginaryPart1 * imaginaryPart2
    val productImaginary = realPart1 * imaginaryPart2 + imaginaryPart1 * realPart2

    return Pair(productReal, productImaginary)
}
/**
 * This function takes two complex numbers as input and returns the product of the two numbers.
 *
 * @param complexNum1 A pair representing the first complex number with real and imaginary parts.
 * @param complexNum2 A pair representing the second complex number with real and imaginary parts.
 * @return A pair representing the product of the two complex numbers with real and imaginary parts.
 */
fun complexNumberMultiplication(complexNum1: Pair<Int, Int>, complexNum2: Pair<Int, Int>): Pair<Int, Int> {
/**
 * This function takes two complex numbers as input and returns the product of the two numbers.
 *
 * @param complexNum1 A pair representing the first complex number with real and imaginary parts.
 * @param complexNum2 A pair representing the second complex number with real and imaginary parts.
 * @return A pair representing the product of the two complex numbers with real and imaginary parts.
 */
fun complexNumberMultiplication(complexNum1: Pair<Int, Int>, complexNum2: Pair<Int, Int>): Pair<Int, Int> {

    val (realPart1, imaginaryPart1) = complexNum1
    val (realPart2, imaginaryPart2) = complexNum2

    // Perform complex number multiplication
    val productReal = realPart1 * realPart2 - imaginaryPart1 * imaginaryPart2
    val productImaginary = realPart1 * imaginaryPart2 + imaginaryPart1 * realPart2

    return Pair(productReal, productImaginary)
}