https://github.com/cran/pracma
Raw File
Tip revision: 63f12837f2d7d6d30cdc2b2df60efdef228d8d0f authored by HwB on 10 May 2011, 00:00:00 UTC
version 0.4-0
Tip revision: 63f1283
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 }
back to top