summaryrefslogtreecommitdiff
path: root/3434/CH14/EX14.8
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.8
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.8')
-rw-r--r--3434/CH14/EX14.8/Ex14_8.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/3434/CH14/EX14.8/Ex14_8.sce b/3434/CH14/EX14.8/Ex14_8.sce
new file mode 100644
index 000000000..ba4ce98c6
--- /dev/null
+++ b/3434/CH14/EX14.8/Ex14_8.sce
@@ -0,0 +1,18 @@
+clc
+// given data
+
+P=200000.0 //principal value in rs
+i=10/100.0 // interest rate
+n=25.0 // time in years
+L=2.0 // power produced in kW
+
+A=P*(i*(1+i)**n)/(-1+(1+i)**n) // annualised capital cost in rs
+
+maintcost=P*0.05 // annual maintainence cost
+Totalcost=A+maintcost // total annual cost
+
+Elec=L*0.25*10*365 // annual electricity production
+
+Cost=Totalcost/Elec // unit cost of electricity production
+
+printf("unit cost of electricity production is Rs %.1f",Cost)