#include <iostream>
#include <cmath>

int main()
{
	double theta;
	const double max = 6.28318; //estimate of 2pi
	const int iterations = 20; //number of times to iterate - 1( the zero )
	const double threshold = 0.0000001;

	for( theta = 0.0; theta < max + threshold; theta += max / iterations )
	{
    	std::cout << "Cos(" << theta << ") = " << cos( theta ) << std::endl;
    	//repeat for sin and tan.
	}
	return 0;
}