summaryrefslogtreecommitdiff
path: root/1208/CH1/EX1.7/Exa7.sce
blob: 409782634fd3250e6bdebcdf9d7c9bdfa41b4f3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Exa7
clc;
clear;
close;
//given data :
Vo=100;//in Rs
Vn=200;//in Rs
n=7;//in years
m=2;//for half yearly compounding
//formula Vn=Vo*(1+i/m)^(m*n)
//solving for i gives
i=m*(%e^((log(Vn/Vo))/(m*n))-1);
r=i*100;
disp(r,"The rate of interest(in % per annum) is   : ")