POLYMATH Report          NLE 
 Explicit Equations 2016-May-30 

Calculated values of explicit variables
    Variable Value
1 i 0.1
2 n 20
3 P 1000
4 Fn 6727.5
5 Pmt 117.46

Problem source text
# S. 5 - Explicit NLEs
# Future value and constant annual repayment
# Verified Solution: Fn =6727.5, Pmt=117.46
i=0.1 # interest rate
n=20 # no. of years
P=1000 # loan. amount
Fn=P*(1+i)^n # future value
Pmt=(i*(1+i)^n)*P/((1+i)^n-1) # annual repayment

Matlab formatted problem
Create m file called PolyExplicit.m and paste the following text into it.
% S. 5 - Explicit NLEs
% Future value and constant annual repayment
% Verified Solution: Fn =6727.5, Pmt=117.46
%interest rate
i = 0.1;
%no. of years
n = 20;
%loan. amount
P = 1000;
%future value
Fn = P * (1 + i) ^ n;
%annual repayment
Pmt = i * (1 + i) ^ n * P / ((1 + i) ^ n - 1);

General Settings
number of explicit equations: 5
reporting digits 8