type of this
      function is computed using the <a class="link" href="result_type.html" title="Calculation of the Type of the Result"><span class="emphasis"><em>result
      type calculation rules</em></span></a>: the result is of type <code class="computeroutput"><span class="keyword">double</span></code> when T is an integer type, and type T
      otherwise.
    </p>
<p>
      Owen's original paper (page 1077) provides some additional corner cases.
    </p>
<div class="blockquote"><blockquote class="blo