import math


def cosd(thetaDeg):
    """
    Compute the cosine of the input given in degrees.

    Parameters
    ----------
    thetaDeg : float or numpy.ndarray
        Angle in degrees

    Returns
    -------
    float or numpy.ndarray
        cosine of the input value
    """
    return math.cos(math.radians(thetaDeg))