Forward Discrete Cosine Transform
forward-dct! is a function implementing forward Discrete Cosine Transform, as used in JPEG.

Written by R. Matthew Emerson who compared it to the C version from the well-known IJG JPEG library. This code is placed in the Public Domain. Code and comments can be found at thoughtstuff.com.

Topic: mathematics