Squashing the double-core cosh bug

Fix bug preventing cosh from working in problem files.