HP Prime for All

English  Русский 

Syntax

lgcd(Seq or Lst )

Description

Returns the greatest common divisor of a list of polynomials or of integers.

Example

lgcd({45,75,20,15}) returns 5 lgcd({x^2-2*x+1,x^3-1,x-1}) returns x-1

lgcd — Discussion