Half-angle identities are useful when you know the cosine of an angle but need trigonometric values for an angle half as large. They also help turn angles such as 15° and 22.5° into exact expressions involving familiar angles.
If you enter 300°, the half-angle is 150°, so cosine and tangent are negative. If the half-angle is 90° plus a multiple of 180°, the page marks tangent undefined instead of displaying a misleading finite number.
Keep the original turn information before halving. Angles 240° and 600° have the same sine and cosine, but their halves are 120° and 300°. Those half-angles have opposite sine and cosine signs. Reducing an angle modulo 360° before halving can therefore change the requested result.
Near a tangent asymptote, a small angle change can cause a large change in tangent. Use the status and the original angle rather than divide the rounded sine by a rounded cosine that may have printed as zero.