Graph of the function intersects the axis X at f = 0
so we need to solve the equation:
$$\left(\pi - x\right) + \sin{\left(x \right)} \cos{\left(x \right)} = 0$$
Solve this equationThe points of intersection with the axis X:
Numerical solution$$x_{1} = 3.14151924912581$$
$$x_{2} = 3.14168171275522$$
$$x_{3} = 3.14148895389751$$
$$x_{4} = 3.1415947301446$$
$$x_{5} = 3.14152877288257$$
$$x_{6} = 3.14156754779156$$
$$x_{7} = 3.14159598607864$$
$$x_{8} = 3.14168131512068$$
$$x_{9} = 3.14160258783412$$
$$x_{10} = 3.14155149970327$$
$$x_{11} = 3.14148918847203$$
$$x_{12} = 3.14158161642793$$
$$x_{13} = 3.14150602022148$$
$$x_{14} = 3.14169850429822$$
$$x_{15} = 3.1416939935162$$
$$x_{16} = 3.14168677025501$$
$$x_{17} = 3.14167988215305$$
$$x_{18} = 3.14160486124364$$
$$x_{19} = 3.14161299492354$$
$$x_{20} = 3.14160190435818$$
$$x_{21} = 3.14167981740688$$
$$x_{22} = 3.14159064916914$$
$$x_{23} = 3.14159073827307$$
$$x_{24} = 3.14158915588708$$
$$x_{25} = 3.14156513559676$$
$$x_{26} = 3.14151813704218$$
$$x_{27} = 3.1416968667002$$
$$x_{28} = 3.14170728279691$$
$$x_{29} = 3.14146866393986$$
$$x_{30} = 3.1416763078837$$
$$x_{31} = 3.14150683902389$$
$$x_{32} = 3.14149916199288$$
$$x_{33} = 3.14151342116947$$
$$x_{34} = 3.14149183101343$$
$$x_{35} = 3.14169444929576$$
$$x_{36} = 3.14170918785332$$
$$x_{37} = 3.14158721497013$$
$$x_{38} = 3.14170355703138$$
$$x_{39} = 3.14158202973043$$
$$x_{40} = 3.14158216968739$$
$$x_{41} = 3.14167509226008$$
$$x_{42} = 3.14169651801184$$
$$x_{43} = 3.1415456764422$$