Implementing Fast DCTs
By Tim Kientzle
Dr. Dobb's Journal March 1999
C = A + B * ( sin(3<img src="http://twimgs.com/ddj/ddj/images/ddj9903m/pi14.gif" width="7" height="7">/8) / cos(3<img src="http://twimgs.com/ddj/ddj/images/ddj9903m/pi14.gif" width="7" height="7">/8) ) D = -A * (sin(3<img src="http://twimgs.com/ddj/ddj/images/ddj9903m/pi14.gif" width="7" height="7">/8)/cos(3<img src="http://twimgs.com/ddj/ddj/images/ddj9903m/pi14.gif" width="7" height="7">/8)) + B C *= cos(3<img src="http://twimgs.com/ddj/ddj/images/ddj9903m/pi14.gif" width="7" height="7">/8) D *= cos(3<img src="http://twimgs.com/ddj/ddj/images/ddj9903m/pi14.gif" width="7" height="7">/8)
Example 2: Rewriting a rotation with only two internal multiplications.
Copyright © 1999, Dr. Dobb's Journal