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

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 >> Polynomials > lcm

lcm

最小公倍数

呼び出し手順

[pp,fact]=lcm(p)

パラメータ

p

fact

多項式ベクトルまたは整数ベクトル (8型)

pp

多項式または整数

説明

pp=lcm(p) は,多項式ベクトルp の最小公倍数ppを計算します.

[pp,fact]=lcm(p) はこれに加えて以下のような ベクトルfactを計算します:

p.*fact=pp*ones(p)

//多項式の場合
s=poly(0,'s');
p=[s,s*(s+1)^2,s^2*(s+2)];
[pp,fact]=lcm(p);
p.*fact, pp

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

参照

  • gcd — 最大公約数を計算
  • bezout — 多項式またh整数のべズー方程式
<< invr Polynomials lcmdiag >>

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 Oct 05 12:12:50 CEST 2011