https://github.com/cran/pracma
Raw File
Tip revision: 9a644c12884525087aa1db3ecf57586b29fb17d8 authored by HwB on 06 June 2011, 00:00:00 UTC
version 0.5-3
Tip revision: 9a644c1
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