<object id="xwuag"></object>
      1. <tbody id="xwuag"><pre id="xwuag"><video id="xwuag"></video></pre></tbody>
        <progress id="xwuag"></progress>

        <nav id="xwuag"><big id="xwuag"><rt id="xwuag"></rt></big></nav>
        <em id="xwuag"></em>

        <nav id="xwuag"></nav><rp id="xwuag"></rp>
        <li id="xwuag"></li>
      2. <rp id="xwuag"></rp>
        <s id="xwuag"></s><th id="xwuag"><pre id="xwuag"><video id="xwuag"></video></pre></th>
      3. <nav id="xwuag"><center id="xwuag"></center></nav>
          <dd id="xwuag"><big id="xwuag"></big></dd>


          Example #1 Factorial function using GMP

          function fact($x
          $return 1;
              for (
          $i=2$i <= $x$i++) {
          $return gmp_mul($return$i);

          gmp_strval(fact(1000)) . "\n";

          This will calculate factorial of 1000 (pretty big number) very fast.

          add a note add a note

          User Contributed Notes 2 notes

          fe at e dot com
          1 year ago
          If you ever need to use this, please see http://php.net/manual/en/function.gmp-fact.php
          Juliano Barreto
          3 years ago
          I forgot to mention. You need (obviously) to remove the gmp function for a usual one. Like this:

          function fact($num)
              $res = 1;
              for ($n = $num; $n >= 1; $n--)
                  $res = $res*$n;
              return $res;


          国产成人午夜福利r在线观看_欧美性受xxxx孕妇_白丝娇喘过膝袜爽短裙调教_jizz jizz xxxx