Is it 4 degrees or 4 radians. If radians:

because the range of arcos is ...... 4 radians is in the third quadrant - outside the range of arcos. So you need the 'equivalent' angle that's in the second quadrant - the second quadantisin the range of arcos.

So in fact, .

Do arctan(tan4) in a similar way.