#NEWLINE# def figure_eight( theta , phi = 0.0 ) : #NEWLINE# #INDENT# '\n    A figure-of-eight pattern.\n    \n    :param theta: angle :math:`\\theta`\n    ' #NEWLINE# return np . abs ( np . cos ( phi ) )