Eliminate redundant trigonometry