diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1208/CH2/EX2.4 | |
download | Scilab-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/CH2/EX2.4')
-rwxr-xr-x | 1208/CH2/EX2.4/Exa4.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/1208/CH2/EX2.4/Exa4.sce b/1208/CH2/EX2.4/Exa4.sce new file mode 100755 index 000000000..01c6f4a3e --- /dev/null +++ b/1208/CH2/EX2.4/Exa4.sce @@ -0,0 +1,20 @@ +//Exa4
+clc;
+clear;
+close;
+//given data is :
+n=3;// in years
+disp("Let P=x then A=2*x");
+disp("Let r% be the rate of interest");
+//formula : A=P(1+r/100)^n;
+//putting values
+disp("2*x=x(1+r/100)^3");
+disp("or");
+disp("2=(1+r/100)^3")
+//on solving this eqn
+r=((2^(1/3))-1)*100;//in %
+disp(r,"rate is comtuted :")
+disp("suppose in n years the amount x will become 16*x, then by formula")
+//16=(1+r/100)^n;
+n=log(16)/log(1+r/100);
+disp("Time is : "+string(n)+" years");
\ No newline at end of file |