Fixed pow function

() parenthese in the wrong place around cos() sin() functions