\frac{k}{n}

p

z = 1.96
n = 35 (slider from 5 to 300, step 1)
c: (x - y)^(2) = z^(2) / n * y * (1 - y)
k = 18 (slider from 1 to n - 1, step 1)
a = Segment((0, k / n), (1, k / n))
A, B = Intersect(c, a)
k1: x(A)
k2: x(B)
Text1: "Wald-Konfidenzintervall  [" + k1 + ", " + k2 + "]"
Text2 = Text("Sicherheitswahrscheinlichkeit  95%")