Revert "Cosine undeclared"

This reverts commit 71b1c37eec6d40910342cd6ef28d6e539e854c8c.