To relate the solutions of these equations, the following simple transformation can be employed: $$g= i \left(\frac\pi2-f\right),$$ where $i$ stands for the imaginary unit, but I don't see any simple way for finding a transformation that would send *real* solutions of one equations into *real* solutions of the other.