Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.0 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> Elementary Functions > Discrete mathematics > gcd

gcd

最大公約数を計算

呼び出し手順

[pgcd,U]=gcd(p)

パラメータ

p

多項式行ベクトル p=[p1,..,pn] または整数行ベクトル (8型)

説明

pの要素の最大公約数および以下のような最小次数の (多項式の逆を有する)ユニモジュラ行列 U を計算します

p*U=[0 ... 0 pgcd]

//多項式の場合
s=poly(0,'s');
p=[s,s*(s+1)^2,2*s^2+s^3];
[pgcd,u]=gcd(p);
p*u

//整数の場合
V=int32([2^2*3^5, 2^3*3^2,2^2*3^4*5]);
[thegcd,U]=gcd(V)
V*U

参照

  • bezout — 多項式またh整数のべズー方程式
  • lcm — 最小公倍数
  • hermit — エルミート形式
Report an issue
<< factorial Discrete mathematics lcm >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Oct 01 17:40:23 CEST 2012