summaryrefslogtreecommitdiff
path: root/1208/CH1/EX1.7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1208/CH1/EX1.7
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1208/CH1/EX1.7')
-rwxr-xr-x1208/CH1/EX1.7/Exa7.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1208/CH1/EX1.7/Exa7.sce b/1208/CH1/EX1.7/Exa7.sce
new file mode 100755
index 000000000..409782634
--- /dev/null
+++ b/1208/CH1/EX1.7/Exa7.sce
@@ -0,0 +1,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 : ")