Fabian Peter Hammerle 8 years ago
commit
c8b3673822
1 changed files with 12 additions and 0 deletions
  1. 12 0
      plot.py

+ 12 - 0
plot.py

@@ -0,0 +1,12 @@
+#!/usr/bin/env python3
+
+import numpy as np
+import matplotlib.pyplot as plt
+
+def p(n):
+    return 1 - (5/6)**n
+
+n = np.arange(0, 100, 1)
+plt.semilogx(n, p(n));
+
+plt.show();