/**
 * Accesses specific elements of the complex numbers in Cartesian form.
 *
 * @param cartesianNumbers A list of complex numbers in Cartesian form (realPart, imaginaryPart).
 * @return A tuple containing the values of specific elements.
 */
fun accessCartesianElements(cartesianNumbers: List<Pair<Double, Double>>): Triple<Double, Double, Double> {

    val element1 = cartesianNumbers[0].first
    val element2 = cartesianNumbers.last().second
    val element3 = cartesianNumbers[cartesianNumbers.size / 2].first
    return Triple(element1, element2, element3)
}
/**
 * Accesses specific elements of the complex numbers in Cartesian form.
 *
 * @param cartesianNumbers A list of complex numbers in Cartesian form (realPart, imaginaryPart).
 * @return A tuple containing the values of specific elements.
 */
fun accessCartesianElements(cartesianNumbers: List<Pair<Double, Double>>): Triple<Double, Double, Double> {
/**
 * Accesses specific elements of the complex numbers in Cartesian form.
 *
 * @param cartesianNumbers A list of complex numbers in Cartesian form (realPart, imaginaryPart).
 * @return A tuple containing the values of specific elements.
 */
fun accessCartesianElements(cartesianNumbers: List<Pair<Double, Double>>): Triple<Double, Double, Double> {

    val element1 = cartesianNumbers[0].first
    val element2 = cartesianNumbers.last().second
    val element3 = cartesianNumbers[cartesianNumbers.size / 2].first
    return Triple(element1, element2, element3)
}