I think the table is wrong the sign of cos in 4th quadrant is negative

Shubhanshu Naik's image