الگو:بمم/توضیحات: تفاوت میان نسخهها
ظاهر
الگو>Rezabot جز ربات:حذف میانویکی موجود در ویکیداده |
(بدون تفاوت)
|
نسخهٔ ۱۴ شهریور ۱۳۹۴، ساعت ۲۳:۰۱
| پرونده:Edit-copy purple.svg |
| نماد لوآ | این الگو از لوآ استفاده میکند: |
This template calculates the بزرگترین مقسومعلیه مشترک (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 الگوریتم اقلیدس).
Examples
- {{gcd|16|6}} → 2
- {{gcd|544|119}} → 17
- {{gcd|2089|3571}} → 1 (algorithm iteration limit reached)