olkit.dist_ref.dists.negative_binomial_dist.estimating_number_of_trials_to_0">Estimating
          Number of Trials to Ensure a Maximum Number of Failures or Less</a>
        </h6>
<pre class="programlisting"><span class="keyword">static</span> <span class="identifier">RealType</span> <span class="identifier">find_maximum_number_of_trials</span><span class="special">(</span>
   <span class="identifier">RealType</span> <span class="identifier">k</span><span class="special">,</span>     <span class="comment">