Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BigInteger.php

function BigInteger::gcdMultiple

File

vendor/brick/math/src/BigInteger.php, line 342

Class

BigInteger
An arbitrary-size integer.

Namespace

Brick\Math

Code

public static function gcdMultiple(BigInteger $a, BigInteger ...$n) : BigInteger {
    $result = $a;
    foreach ($n as $next) {
        $result = $result->gcd($next);
        if ($result->isEqualTo(1)) {
            return $result;
        }
    }
    return $result;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal