Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Português

Change language to:
English - Français - 日本語 - Русский

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

Ajuda do Scilab >> Polinômios > bezout

bezout

Maior Comum Divisor de dois polinômios ou dois inteiros, pelo método Bezout

Seqüência de Chamamento

thegcd = bezout(p1,p2)
[thegcd,U] = bezout(p1,p2)

Parâmetros

p1, p2

dois polinômios reais ou dois escalares inteiros (tipo igual a 1 ou 8)

thegcd

scalar with the type of p1: The Greatest Common Divisor of p1 and p2.

U

2x2 unimodular matrix of the type of p1, such that [p1 p2]*U = [thegcd 0].

Descrição

thegcd = bezout(p1,p2) computa o MDC thegcd de p1 e p2.

Além disso, [thegcd,U] = bezout(p1,p2) calcula e retorna uma matriz unimodular (2x2) U tal que [p1 p2]*U = [thegcd 0].

O MMC de p1 e p2 é dado por:

p1*U(1,2) (or -p2*U(2,2))

Exemplos

// caso polinomial
x = poly(0,'x');
p1 = (x+1)*(x-3)^5;
p2 = (x-2)*(x-3)^3;
[thegcd,U] = bezout(p1,p2)
det(U)
clean([p1,p2]*U)
thelcm = p1*U(1,2)
lcm([p1,p2])

// Double case
i1 = 2*3^5;
i2 = 2^3*3^2;
[thegcd,U] = bezout(i1, i2)
V = [2^2*3^5 2^3*3^2 2^2*3^4*5];
[thegcd,U] = gcd(V)
V*U
lcm(V)

// caso inteiro
i1 = int32(2*3^5);
i2 = int32(2^3*3^2);
[thegcd,U] = bezout(i1,i2)
V = int32([2^2*3^5, 2^3*3^2,2^2*3^4*5]);
[thegcd,U] = gcd(V)
V*U
lcm(V)

Histórico

VersionDescription
6.0.1 The second output U is now optional.
Report an issue
<< Polinômios Polinômios chepol >>

Copyright (c) 2022-2024 (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:
Tue Feb 25 08:52:30 CET 2020