Now generates a *correct* sine/cosine table.