Difference between revisions of "Template:Gcd/doc"
Jump to navigation
Jump to search
(+ja) |
imported>Mr. Stradivarius (update after switch to Module:Math) |
||
| Line 1: | Line 1: | ||
| − | + | {{documentation subpage}} | |
| + | {{lua|Module:Math}} | ||
| − | + | This template calculates the '''[[greatest common divisor]]''' (gcd) of two or more parameters. | |
| − | |||
| − | This template calculates the '''[[greatest common divisor]]''' (gcd) of two parameters | ||
==Examples== | ==Examples== | ||
*<nowiki>{{gcd|16|6}}</nowiki> → {{gcd|16|6}} | *<nowiki>{{gcd|16|6}}</nowiki> → {{gcd|16|6}} | ||
| + | *<nowiki>{{gcd|360|180|120|90}}</nowiki> → {{gcd|360|180|120|90}} | ||
*<nowiki>{{gcd|544|119}}</nowiki> → {{gcd|544|119}} | *<nowiki>{{gcd|544|119}}</nowiki> → {{gcd|544|119}} | ||
| − | *<nowiki>{{gcd|2089|3571}}</nowiki> → {{gcd|2089|3571}} | + | *<nowiki>{{gcd|2089|3571}}</nowiki> → {{gcd|2089|3571}} |
<includeonly> | <includeonly> | ||
Revision as of 14:42, 23 December 2013
| 40px | This is a documentation subpage for Template:Gcd. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
This template calculates the greatest common divisor (gcd) of two or more parameters.
Examples
- {{gcd|16|6}} → 2
- {{gcd|360|180|120|90}} → 30
- {{gcd|544|119}} → 17
- {{gcd|2089|3571}} → 1