future value schedule
Evaluate the future value of an investment using a schedule of interest rates.
Controller: CodeCogs
Interface
C++
Excel
Future Value Schedule
doublefuture_value_schedule( | double | pv | |
double* | schedule | ||
int | nper | ) |
References:
http://www.vni.com/products/imsl/jmsl/v30/api/com/imsl/finance/Finance.htmlExample 1
#include <stdio.h> #include <codecogs/finance/banking/future_value_schedule.h> int main() { double principal = 10000.00; double schedule[] = {0.050, 0.051, 0.052, 0.053, 0.054}; int n = 5; double d = Finance::Banking::future_value_schedule(principal, schedule, n); printf("After 5 years, the 10000.00 investment will have grown to %5.2f\n", d); }
Output:After 5 years, the 10000.00 investment will have grown to 12884.77
Parameters
pv is the principal value, a double.
Returns
- a double, the future value.
Authors
- James Warren (May 2005)
Source Code
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.