Revert "Revert "Cosine undeclared""

This reverts commit e691d379a5c67ad1ebd07e8d176ea7609f917e72.