The value of sine is correct, but cotangent is not. You may have thought that cotangent was the reciprocal of cosine, but it is the reciprocal of tangent.