Solve equations with multiple angles (#481)