How to solve this equation in [0,2pi][0,2π]? min{sinx,cosx}=pi/4.