Login  Register

Trigonometry

Posted by cadet1620 on Jun 01, 2013; 3:58pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Trigonometry-tp4026900.html

You can do a lot with a very simple computer!

I present for your enjoyment, Trigonometry: A Sequel to Floating Point.

Trig screen shot

Here's the source: Trig_1_0.zip. The test program is too big to run on the CPU emulator so I needed to split it in two. Trig-test.hack and Trig-plot.hack are included in the source zip. Warning: Trig-plot.hack takes about 40 minutes on my home PC.

The trig functions are built around the CORDIC algorithm.

--Mark