General solution for |sinx|=cosx is-
Consider the given expression.
|sinx|=cosx
When sinx<0,
−sinx=cosx
tanx=−1
x=nπ−π4
When sinx>0,
sinx=cosx
tanx=1
x=nπ+π4
Therefore, required set of values are,
x=nπ±π4; n∈I
Hence, this is the required result.