The answer definitely should be 1. Either we are all wrong, and the textbook defies simple trig logic. Or the answer is wrong/misprint etc.
Test it, enter any radian value into the expression, and you should always get 1.
Another way of look at it is this.
If you graph sin(pi-x), the original sine graph will get translated to the left, however since it is only pi AND flipped downwards. But since Sine is symetrical and has a period of 2pi. The graph will look like the original sinx graph.
When you graph cos(pi/2-x), the original graph is shifted to the left pi/2 units. However if you enter it into a graphing program, then two graphs are the same thing. This is because cos is (you can imagine it this way) the same as sin except shifted to the left pi/2 units. (Same as sin(-x) when shifted to the right).
So since they are the same for all values of x, when you divide them, it will always equal to one.
However I just found this out. When dividing them, when x=0, the answer is 0/0, which is undefined. (same result for pi etc.)
But, since I accidentally learnt L Hopitals while looking for Ext1 vids from patrickJMT....
You dont need to know this, its just a proof. But its also proving that the expression is true for certain values of x (i.e. 0, pi etc.)
EDIT: Hang on, I dont know why I proved that, it still doesnt mean that for x=0, pi etc. there is a solution. So yeah there is no solution for those values.