/**
 * Given a complex number z, find its conjugate.
 *
 * @param z A tuple representing a complex number in the form (real part, imaginary part).
 * @return A tuple representing the conjugate of the input complex number.
 */
fun findConjugate(z: Pair<Double, Double>): Pair<Double, Double> {

    // Access the real and imaginary parts of the complex number
    val (realPart, imaginaryPart) = z
    
    // Calculate the conjugate of the complex number
    val conjugate = Pair(realPart, -1 * imaginaryPart)
    
    return conjugate
}
/**
 * Given a complex number z, find its conjugate.
 *
 * @param z A tuple representing a complex number in the form (real part, imaginary part).
 * @return A tuple representing the conjugate of the input complex number.
 */
fun findConjugate(z: Pair<Double, Double>): Pair<Double, Double> {
/**
 * Given a complex number z, find its conjugate.
 *
 * @param z A tuple representing a complex number in the form (real part, imaginary part).
 * @return A tuple representing the conjugate of the input complex number.
 */
fun findConjugate(z: Pair<Double, Double>): Pair<Double, Double> {

    // Access the real and imaginary parts of the complex number
    val (realPart, imaginaryPart) = z
    
    // Calculate the conjugate of the complex number
    val conjugate = Pair(realPart, -1 * imaginaryPart)
    
    return conjugate
}