Determina theta in [0, 2pi) such that sintheta = costheta