import numpy as np # a function to be finished def cos_to_be_finished(x): # TODO: to be finished return # a function with a simple docstring def _cos(x): """ this is a cosine function """ return np.cos(x) # a function with a complete docstring def cos(x: float = 0.): """ cosine function Parameters ---------- x : x values Returns ------- cos(x) Examples -------- >>> import numpy as np >>> cos(np.pi) Notes ----- this function is a warpper of `numpy.cos()` """ return np.cos(x)