Compute P given A1
PgivenA1(A1, i, f, n)
numeric vector that contains the initial annual value(s)
numeric vector that contains the interest rate(s) as a percent
numeric vector that contains the average interest rate value(s) as a percent per period
numeric vector that contains the period value(s)
PgivenA1 numeric vector that contains the present value(s) rounded to 2 decimal places
P is expressed as
or
"the present equivalent of the geometric gradient series"
"the initial cash flow in that occurs at the end of period one"
the "interest rate per period"
the "average rate each period"
the "number of interest periods"
Note: "f can be positive or negative"
William G. Sullivan, Elin M. Wicks, and C. Patrick Koelling, Engineering Economy, Fourteenth Edition, Upper Saddle River, New Jersey: Pearson/Prentice Hall, 2009, page 156-159.
# NOT RUN {
library(iemisc)
# Example 4-23 from the Reference text (page 158-159)
PgivenA1(1000, 25, 20, 4) # i is 25% and f is 20%
# Example 4-24 from the Reference text (page 159)
PgivenA1(1000, 25, -20, 4) # i is 25% and f is -20%
# }
Run the code above in your browser using DataLab