<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def recgeo(rectan, re, f):
 """ Convert from rectangular coordinates to geodetic coordinates. http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/recgeo_c.html :param rectan: Rectangular coordinates of a point. :type rectan: 3-Element Array of floats :param re: Equatorial radius of the reference spheroid. :type re: float :param f: Flattening coefficient. :type f: float :return: Geodetic longitude (radians), Geodetic latitude (radians), Altitude above reference spheroid :rtype: tuple """

    rectan = stypes.toDoubleVector(rectan)
    re = ctypes.c_double(re)
    f = ctypes.c_double(f)
    longitude = ctypes.c_double(0)
    latitude = ctypes.c_double(0)
    alt = ctypes.c_double(0)
    libspice.recgeo_c(rectan, re, f, ctypes.byref(longitude),
                      ctypes.byref(latitude), ctypes.byref(alt))
    return longitude.value, latitude.value, alt.value