Anagram cosine