vecgcd

버전 1.0.0.0 (1.44 KB) 작성자: Steven Gregory
Computes the GCD of the elements of the integer vector V.
다운로드 수: 540
업데이트 날짜: 2011/1/28

라이선스 보기

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.

인용 양식

Steven Gregory (2024). vecgcd (https://www.mathworks.com/matlabcentral/fileexchange/30216-vecgcd), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2006a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Arithmetic Operations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0