def parrondo_van_den_broek_right(error, n, delta, growth_function): return sqrt(1/n * (2 * error + log(6 * growth_function(2*n)/delta)))