gcd | R Documentation |
Calculate the greatest common divisor between two numbers
gcd(a, b)
a |
a is greater than 0 while a is whole number |
b |
b is greater than 0 while b is whole number |
Ues Euclidean algorithm
the greatest common divisor between a and b
OuYang Ming
Friedrich Leisch, 2008 Creating R packages: A Tutorial Zhang Jinlong, How to create R package under Windows FAQ in R-PROJECT
a=14
b=32
c=gcd(a,b)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.