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

See the recommended documentation of this function

# lcm

mínimo múltiplo comum

### Seqüência de Chamamento

```pp = lcm(p)
[pp, fact] = lcm(p)```

### Parâmetros

p

vetor de polinômios

fact

vetor de polinômios ou inteiros (tipo igual a 8)

pp

polinômio ou inteiro

### Descrição

`pp=lcm(p)` computa o MMC `pp` do vetor de polinômios `p`.

`[pp,fact]=lcm(p)` computa, ainda, o vetor `fact` tal que `p.*fact=pp*ones(p)`

If `p` is a set of integers with some negative ones, the returned value `pp` of their LCM is always positive.

If `p` is an array of decimal integers, they are priorly converted into `int32` before processing.

### Exemplos

```//caso polinomial
s=poly(0,'s');
p=[s,s*(s+1)^2,s^2*(s+2)];
[pp,fact]=lcm(p);
p.*fact, pp

//caso inteiro
V=int32([2^2*3^5, 2^3*3^2,2^2*3^4*5]);
lcm(V)```

### Histórico

 Version Description 6.0.1 For input integers possibly negative, the returned LCM is now always positive.
 Report an issue << gcd Matemática discreta perms >>