p1 = 0.5p2 = 0.25 print("F(0, 0) =", (1 - p1) * (1 - p2))print("F(0, 1) =", (1 - p1))print("F(1, 0) =", (1 - p2))print("F(1, 1) =", 1)
Standard input is empty
F(0, 0) = 0.375 F(0, 1) = 0.5 F(1, 0) = 0.75 F(1, 1) = 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!