It looks like you confused sine with cosecant and secant with cosine. Remember that sine is opposite over hypotenuse and cosine is adjacent over hypotenuse.