pregenerated sine and cosine tables (IN DEGREES) GO DOWN FOR WARNINGS how to use: Item number in list: x # in specific item: sin(x) or cos(x) for example: the first item for cosine is .9998476951563913 x=1 (because it's the 1st item) cos(x) = .9998476951563913 WARNINGS DECIMALS This tables have decimal input values, but there are only tenths right now, so there’s only 0.1, 0.2, 0.3, etc. The first item is sin(0.1) (or cos(0.1)), then sin(0.2) (or cos(0.2)), etc. WHERE'S THE SINE OR COSINE OF ZERO? sin(0) = sin(360), and cos(0) = cos(360), so if you're trying to find sin(0) or cos(0), just use the 360th item in the table, however sin(0) = 0 and cos(0) = 1.
green line: scratch's cosine function outline of green line: pregenerated cosine red line: scratch's sine function outline of red line: pregenerated sine (the values are multiplied by 90 for the graphs so the values are more distinct) The sine and cosine lines are exactly the same, which means the pregenerated tables work!