sage: f = cos(cos(cos(cos(x)))) - sin(sin(sin(sin(x))))

This will show the results of f on this square. The darker the area, the smaller the modulus (color indicates the argument of the image of that point). You can compare with the identity map to see what is what.
sage: complex_plot(x,(-pi,pi),(-pi,pi),plot_points=500)