A=0.7; B=0.4; AorB=0.9;
AandB=A+B-AorB
AifB=AandB/B
BifA=AandB/A
AandB==0 (** test if they are mutually exclusive **)
AandB==A*B (** test if they are independent **)