Difference between revisions of "Template:Gcd/doc"

From blackwiki
Jump to navigation Jump to search
imported>Lam-ang
m (Removed one sitelink migrated to an item on Wikidata)
Line 5: Line 5:
  
 
==Examples==
 
==Examples==
*<nowiki>{{gcd|16|6}}</nowiki>&nbsp;&rarr; {{gcd|16|6}}
+
*{{tlx|gcd|16|6}}&nbsp;&rarr; {{gcd|16|6}}
*<nowiki>{{gcd|360|180|120|90}}</nowiki>&nbsp;&rarr; {{gcd|360|180|120|90}}
+
*{{tlx|gcd|360|180|120|90}}&nbsp;&rarr; {{gcd|360|180|120|90}}
*<nowiki>{{gcd|544|119}}</nowiki>&nbsp;&rarr; {{gcd|544|119}}
+
*{{tlx|gcd|544|119}}&nbsp;&rarr; {{gcd|544|119}}
*<nowiki>{{gcd|2089|3571}}</nowiki>&nbsp;&rarr; {{gcd|2089|3571}}
+
*{{tlx|gcd|2089|3571}}&nbsp;&rarr; {{gcd|2089|3571}}
  
 
<includeonly>
 
<includeonly>
 
[[Category:Mathematical function templates|GCD]]
 
[[Category:Mathematical function templates|GCD]]
 
</includeonly>
 
</includeonly>

Revision as of 13:52, 19 May 2016

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