This is slightly more of a coding problem than a math problem but I think it is still relevant.
So let's say I have 3 numbers A,B,C and I can only call a given function if two are negative and one is positive or vice versa with 2 positive and one negative. Also I need to be able to tell which of the 3 numbers is the odd one out.
It's tedious and a little unclean looking to do:
if(A < 0 && B < 0 && C > 0)
{
//C is odd one out;
} else if(A < 0 && B > 0 && C < 0){
//B is odd one out
} etc...
Assuming none of them are zero,