n=100;f=3;B=1e-5; X=(B**f); Y=((1-B)**(n-f)); Z=combination(n,f); X*Y*Z