amplitude of a cos function - Search