Your equation is correct. Now look at the numerical solution and try to guess how it relates to pi. After guessing, verify that the number indeed satisfies the equation. It is clear from the graph that there are no solutions in the interval [0, pi], but this could be proved more precisely.