If I want to find all points of intersection, and not just one point, between the following two functions: $ sin(x)^{2}$ and $e^{-x}cos(x) $
$ eqn := sin(x)^2 = e^{-x}cos(x); $
$ fsolve(eqn, x); $
The output in Maple gives me one point of intersection, while I would like to see ALL points of intersection between the two functions.
Iterate fsolve on intervals of the form $[k\pi,(k+1)\pi]$, with $k\in\mathbb{Z}$, as follows:
output (depending on $k$):
Note that the above results are NOT proof that these are the $\mathbf{only}$ roots in the indicated intervals. The latter is an entirely different question.