% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interest_theory.R
\name{annuity_certain}
\alias{annuity_certain}
\title{Present value of a level annuity-certain}
\usage{
annuity_certain(n, i, due = FALSE, m = 1, cont = FALSE)
}
\arguments{
\item{n}{Number of payments or periods. May be scalar or vector.}

\item{i}{Effective interest rate per period. May be scalar or vector.}

\item{due}{If `TRUE`, annuity-due; otherwise annuity-immediate.}

\item{m}{Payment frequency per period. `m = 1` means annual.}

\item{cont}{If `TRUE`, use the continuous payment model.}
}
\value{
Numeric vector of present values.
}
\description{
Computes the present value of an n-period annuity certain with level
payments of 1 per period.
}
\examples{
annuity_certain(n = 10, i = 0.05)
annuity_certain(n = c(5, 10), i = 0.05)
annuity_certain(n = 10, i = c(0.03, 0.05))
annuity_certain(n = 10, i = 0.05, due = TRUE)
annuity_certain(n = 10, i = 0.05, cont = TRUE)
}
