Is there any algorithm to determine the minimum number of multiplication(division) of a specific expression? and the optimal expression form for implementation?
For example, given values of $\cos\alpha, \sin\alpha$, $\cos\beta, \sin\beta$ and $\cos\theta,\sin\theta$, what is the minimum number of multiplication in order to obtain numerical matrix:
How to obtain the final optimal expression (codes) for implementation?