https://github.com/cran/pracma
Tip revision: a7001ff1805634d18a10fa371b38dbe3e48f8c9e authored by HwB on 30 October 2011, 00:00:00 UTC
version 0.8.1
version 0.8.1
Tip revision: a7001ff
coprime.Rd
\name{coprime}
\alias{coprime}
\title{Coprimality}
\description{
Determine whether two numbers are coprime, i.e. do not have a common
prime divisor.
}
\usage{
coprime(n,m)
}
\arguments{
\item{n, m}{integer scalars}
}
\details{
Two numbers are coprime iff their greatest common divisor is 1.
}
\value{
Logical, being TRUE if the numbers are coprime.
}
\seealso{
\code{\link{GCD}}
}
\examples{
coprime(46368, 75025) # Fibonacci numbers are relatively prime to each other
coprime(1001, 1334)
}
\keyword{ arith }