Negative values will throw an error. you cannot get a negative value for
2^b whatever real number you give to
b. Try to do this:
|C| is the absolute value of
min(A,B) is the smallest of A and B, and
sign(A-B) is just the sign. Change the
(B-A) if you plot B on top or vice versa.
I hope it helps,