using a table of double[] is unnecessary, use float.