/**
 * Given the latitude and longitude of a location,
 * this function determines the direction it lies in with respect to the equator and prime meridian.
 *
 * @param latitude The latitude of the location.
 * @param longitude The longitude of the location.
 * @return The direction of the location with respect to the equator and prime meridian.
 *         It can be 'Northern Hemisphere, Eastern Hemisphere',
 *         'Northern Hemisphere, Western Hemisphere',
 *         'Southern Hemisphere, Eastern Hemisphere', or
 *         'Southern Hemisphere, Western Hemisphere'.
 */
fun complexNumberGeography(latitude: Double, longitude: Double): String {

    // Determine the hemisphere
    val hemisphere = if (latitude > 0) {
        "Northern Hemisphere"
    } else {
        "Southern Hemisphere"
    }

    // Determine the hemisphere and direction
    val direction = if (longitude > 0) {
        "Eastern Hemisphere"
    } else {
        "Western Hemisphere"
    }

    return "$hemisphere, $direction"
}
/**
 * Given the latitude and longitude of a location,
 * this function determines the direction it lies in with respect to the equator and prime meridian.
 *
 * @param latitude The latitude of the location.
 * @param longitude The longitude of the location.
 * @return The direction of the location with respect to the equator and prime meridian.
 *         It can be 'Northern Hemisphere, Eastern Hemisphere',
 *         'Northern Hemisphere, Western Hemisphere',
 *         'Southern Hemisphere, Eastern Hemisphere', or
 *         'Southern Hemisphere, Western Hemisphere'.
 */
fun complexNumberGeography(latitude: Double, longitude: Double): String {
/**
 * Given the latitude and longitude of a location,
 * this function determines the direction it lies in with respect to the equator and prime meridian.
 *
 * @param latitude The latitude of the location.
 * @param longitude The longitude of the location.
 * @return The direction of the location with respect to the equator and prime meridian.
 *         It can be 'Northern Hemisphere, Eastern Hemisphere',
 *         'Northern Hemisphere, Western Hemisphere',
 *         'Southern Hemisphere, Eastern Hemisphere', or
 *         'Southern Hemisphere, Western Hemisphere'.
 */
fun complexNumberGeography(latitude: Double, longitude: Double): String {

    // Determine the hemisphere
    val hemisphere = if (latitude > 0) {
        "Northern Hemisphere"
    } else {
        "Southern Hemisphere"
    }

    // Determine the hemisphere and direction
    val direction = if (longitude > 0) {
        "Eastern Hemisphere"
    } else {
        "Western Hemisphere"
    }

    return "$hemisphere, $direction"
}