/* converts its input angle (in degrees) to radians */ double convert_to_radian (double angle) { double pi = 3.14159; return angle * pi / 180.0; }