الفرق بين المراجعتين لصفحة: «قالب:Gcd/شرح»

من موسوعة العلوم العربية
اذهب إلى التنقل اذهب إلى البحث
ط (مراجعة واحدة)
 
(لا فرق)

المراجعة الحالية بتاريخ 10:36، 21 أغسطس 2012

This is the documentation of Template:gcd.


This template calculates the greatest common divisor (gcd) of two parameters. It returns the value of gcd. Zero is returned when calculation is too complex (this implementation only allows for ten iterations of the Euclidean algorithm).

Examples

  • {{gcd|16|6}} → 2
  • {{gcd|544|119}} → 17
  • {{gcd|2089|3571}} → 0 (algorithm iteration limit reached)