https://github.com/cran/pracma
Raw File
Tip revision: 71455748623ef69836470c75c5f9384f6e872d45 authored by HwB on 28 June 2011, 00:00:00 UTC
version 0.6-3
Tip revision: 7145574
omega.Rd
\name{omega}
\alias{omega}
\alias{Omega}
\title{Number of Prime Factors}
\description{
  Sum of all exponents of prime factors in the prime decomposition.
}
\usage{
omega(n)
Omega(n)
}
\arguments{
  \item{n}{Positive integer.}
}
\details{
  Compute the number of prime factors of \code{n} resp. the sum of their
  exponents in the prime decomposition.

  \code{(-1)^Omega(n)} is the Liouville function.
}
\value{
  Natural number, some of exponents.
}
\author{
  HwB <hwborchers@googlemail.com>
}
\note{
  Works well up to \code{10^9}.
}
\seealso{
\code{\link{ifactor}}, \code{\link{sigma}}
}
\examples{
omega(2*3*5*7*11*13*17*19)  #=> 8
Omega(2 * 3^2 * 5^3 * 7^4)  #=> 10
}
\keyword{ math }
back to top