diff_cos