Create cos-functions