Suppose I have two different single pixel (ie 1x1 pixel) alpha channels.
The channels are called A and B.
Since everything is grayscale, I will normalize my alpha channel values to between 0 and 1, 0 being completely black and 1 being completely white.
I would like a formula that tells me the result when I subtract B from A (On a mac, this is Cmd+Click A and then Option+Cmd+Click B and then create a new alpha channel and paint bucket in 100% white). Let the result be denoted A - B.
Similarly, I would also like a formula that tells me the result when I add B to A (using shift+cmd+click on a mac). Let this be denoted A+B.
I would also like a formula that tells me the result when I intersect A and B (shift+option+cmd+click on a mac). Let this be denoted A cap B.
I would also like a formula that tells me the result when I invert A (Cmd+I on a mac). Let this be denoted Inv(A).
I'm using the latest version of photoshop.
Here are some examples to show that this is not what one might think:
Suppose A = 1 and B = 0.5. Then A - B = 0.66666 = 2/3. Why???
Suppose A = 0.5, then Inv(A) = 0.66666 = 2/3. Why?????
Suppose A = 0.25, then Inv(A) = 0.86. Why????
Suppose A = 0.5, then A cap A = 0.24. Why?????
Suppose A = 0.5, then (A cap A) cap A = 0.1 Whyyyyyyy?
Is there a reference where this is all explained?