vecgcd

Computes the GCD of the elements of the integer vector V.

Sie verfolgen jetzt diese Einreichung

G = VECGCD(V) is the greatest common divisor of the elements of the integer
vector V. V must be a row or a column vector of integers.We define gcd([]) = 1 and gcd([0 0 ... 0]) = 0.

I believe that this routine is faster than recursively computing GCDs and the algorithm is simple enough to be used for pencil and paper calculations.

Zitieren als

Steven Gregory (2026). vecgcd (https://de.mathworks.com/matlabcentral/fileexchange/30216-vecgcd), MATLAB Central File Exchange. Abgerufen .

Kategorien

Mehr zu Arithmetic Operations finden Sie in Help Center und MATLAB Answers

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
1.0.0.0