amplitude of cosine function - Search