Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - Français

Change language to:
English - 日本語 - 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

Manuel Scilab >> Polynômes > gcd

gcd

calcul de PGCD

Séquence d'appel

[pgcd,U]=gcd(p)

Paramètres

p

vecteur ligne de polynômes p=[p1,..,pn] ou d'entiers (type égal à 8)

Description

Calcule le PGCD des termes de p et une matrice unimodulaire (avec le polynôme inverse) U, de degré minimal tels que

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

Exemples

//cas des polynômes
s=poly(0,'s');
p=[s,s*(s+1)^2,2*s^2+s^3];
[pgcd,u]=gcd(p);
p*u

//cas des entiers
V=int32([2^2*3^5, 2^3*3^2,2^2*3^4*5]);
[thegcd,U]=gcd(V)
V*U

Voir Aussi

<< factors Polynômes hermit >>

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:
Wed Jan 26 16:24:12 CET 2011