double angle with quadrant

When doubling the angle using the correct quadrant is important.