summaryrefslogtreecommitdiff
path: root/3434/CH14/EX14.2/Ex14_2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3434/CH14/EX14.2/Ex14_2.sce
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 '3434/CH14/EX14.2/Ex14_2.sce')
-rw-r--r--3434/CH14/EX14.2/Ex14_2.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3434/CH14/EX14.2/Ex14_2.sce b/3434/CH14/EX14.2/Ex14_2.sce
new file mode 100644
index 000000000..023d2d15d
--- /dev/null
+++ b/3434/CH14/EX14.2/Ex14_2.sce
@@ -0,0 +1,13 @@
+clc
+
+// given data
+
+P=10.0 // in lakh rs
+i=12.25 // interest rate in %
+F=20 // final amount in lakh rs
+
+n=log(F/P)/log(1+i/100.0) // time in years
+
+printf("The number of years is %.2f years",n)
+
+