結果 : general form of cosine function