summaryrefslogtreecommitdiff
path: root/Engineering_Economics/Chapter4.ipynb
diff options
context:
space:
mode:
authorThomas Stephen Lee2015-09-04 22:04:10 +0530
committerThomas Stephen Lee2015-09-04 22:04:10 +0530
commit41f1f72e9502f5c3de6ca16b303803dfcf1df594 (patch)
treef4bf726a3e3ce5d7d9ee3781cbacfe3116115a2c /Engineering_Economics/Chapter4.ipynb
parent9c9779ba21b9bedde88e1e8216f9e3b4f8650b0e (diff)
downloadPython-Textbook-Companions-41f1f72e9502f5c3de6ca16b303803dfcf1df594.tar.gz
Python-Textbook-Companions-41f1f72e9502f5c3de6ca16b303803dfcf1df594.tar.bz2
Python-Textbook-Companions-41f1f72e9502f5c3de6ca16b303803dfcf1df594.zip
add/remove/update books
Diffstat (limited to 'Engineering_Economics/Chapter4.ipynb')
-rwxr-xr-xEngineering_Economics/Chapter4.ipynb388
1 files changed, 0 insertions, 388 deletions
diff --git a/Engineering_Economics/Chapter4.ipynb b/Engineering_Economics/Chapter4.ipynb
deleted file mode 100755
index 2b2d10b2..00000000
--- a/Engineering_Economics/Chapter4.ipynb
+++ /dev/null
@@ -1,388 +0,0 @@
-{
- "metadata": {
- "name": "",
- "signature": "sha256:aed8a204f6a6b9aa286380e07fd82210fb76cb7818bcaa10c4f627aee9d0c52a"
- },
- "nbformat": 3,
- "nbformat_minor": 0,
- "worksheets": [
- {
- "cells": [
- {
- "cell_type": "heading",
- "level": 1,
- "metadata": {},
- "source": [
- "Present Worth Method of Comparision"
- ]
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example 4.1 Page 44"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "#initiation of variable\n",
- "#technology 1\n",
- "P=1200000.0;#in Rs\n",
- "A=400000.0;#in Rs\n",
- "i=20.0;#in % per annum\n",
- "n=10.0;#in years\n",
- "\n",
- "#calculation\n",
- "PW=-P+A*(((1+i/100)**n)-1)/((i/100)*(1+i/100)**n);#in RS\n",
- "\n",
- "#result\n",
- "print \"The present worth for this technology in RS. \",round(PW,3);\n",
- "\n",
- "#technology 2\n",
- "P=2000000.0;#in Rs\n",
- "A=600000.0;#in Rs\n",
- "i=20.0;#in % per annum\n",
- "n=10.0;#in years\n",
- "\n",
- "#calculation\n",
- "PW=-P+A*(((1+i/100)**n)-1)/((i/100)*(1+i/100)**n);#in RS\n",
- "\n",
- "#result\n",
- "print \"The present worth for this technology in RS. \",round(PW,3);\n",
- "\n",
- "#technology 3\n",
- "P=1800000.0;#in Rs\n",
- "A=500000.0;#in Rs\n",
- "i=20.0;#in % per annum\n",
- "n=10.0;#in years\n",
- "\n",
- "#calculation\n",
- "PW=-P+A*(((1+i/100)**n)-1)/((i/100)*(1+i/100)**n);#in RS\n",
- "\n",
- "#result\n",
- "print \"The present worth for this technology in RS. \",round(PW,3);\n",
- "print \"It is clear from the calculations that the present worth of technology 2 is the highest among all technologies. Therefore technology 2 is suggested for implementation to expand the production.\";\n",
- "print \"the answer is differnt due to approximation error\""
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "The present worth for this technology in RS. 476988.834\n",
- "The present worth for this technology in RS. 515483.251\n",
- "The present worth for this technology in RS. 296236.043\n",
- "It is clear from the calculations that the present worth of technology 2 is the highest among all technologies. Therefore technology 2 is suggested for implementation to expand the production.\n",
- "the answer is differnt due to approximation error\n"
- ]
- }
- ],
- "prompt_number": 2
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example 4.2 Page 46"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "#initiation of variable\n",
- "#bid 1\n",
- "P=450000.0;#in Rs\n",
- "A=27000.0;#in Rs\n",
- "i=15.0;#in % per annum\n",
- "n=15.0;#in years\n",
- "\n",
- "#calculation\n",
- "PW=P+A*(((1+i/100)**n)-1)/((i/100)*(1+i/100)**n);#in RS\n",
- "\n",
- "#result\n",
- "print \"The present worth for this bid in RS. \",round(PW,3)\n",
- "\n",
- "#bid 2\n",
- "P=540000.0;#in Rs\n",
- "A=28500.0;#in Rs\n",
- "i=15.0;#in % per annum\n",
- "n=15.0;#in years\n",
- "\n",
- "#calculation\n",
- "PW=P+A*(((1+i/100)**n)-1)/((i/100)*(1+i/100)**n);#in RS\n",
- "\n",
- "#result\n",
- "print \"The present worth for this bid in RS. \",round(PW,3)\n",
- "print \"The total present worth cost of bid 1 is less than that of bid 2. Hence bid 1 is to be selected for implementation. That is, the Elevator from Alpha Elevator Inc. is to be purchased and installed in the new building.\";"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "The present worth for this bid in RS. 607878.993\n",
- "The present worth for this bid in RS. 706650.048\n",
- "The total present worth cost of bid 1 is less than that of bid 2. Hence bid 1 is to be selected for implementation. That is, the Elevator from Alpha Elevator Inc. is to be purchased and installed in the new building.\n"
- ]
- }
- ],
- "prompt_number": 3
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example 4.3 Page 47"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "#initiation of variable\n",
- "#investment proposal A\n",
- "P1=-10000.0;#in Rs\n",
- "P2=3000.0;#in Rs\n",
- "P3=3000.0;#in Rs\n",
- "P4=7000.0;#in Rs\n",
- "P5=6000.0;#in Rs\n",
- "i=18.0;#in % per annum\n",
- "\n",
- "#calculation\n",
- "PW_A=P1+P2*1/((1+i/100)**1)+P3*1/((1+i/100)**2)+P4*1/((1+i/100)**3)+P5*1/((1+i/100)**4);#in RS\n",
- "\n",
- "#result\n",
- "print \"The present worth of A in RS. \",round(PW_A,3);\n",
- "\n",
- "#investment proposal B\n",
- "P1=-10000.0;#in Rs\n",
- "P2=6000.0;#in Rs\n",
- "P3=6000.0;#in Rs\n",
- "P4=3000.0;#in Rs\n",
- "P5=3000.0;#in Rs\n",
- "i=18.0;#in % per annum\n",
- "\n",
- "#calculation\n",
- "PW_B=P1+P2*1/((1+i/100)**1)+P3*1/((1+i/100)**2)+P4*1/((1+i/100)**3)+P5*1/((1+i/100)**4);#in RS\n",
- "\n",
- "#result\n",
- "print \"The present worth of B in RS. \",round(PW_B,3);\n",
- "print\"At i=18%, the present worth of proposal B is higher than that of proposal A. Therefore, select proposal B.\""
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "The present worth of A in RS. 2052.076\n",
- "The present worth of B in RS. 2767.112\n",
- "At i=18%, the present worth of proposal B is higher than that of proposal A. Therefore, select proposal B.\n"
- ]
- }
- ],
- "prompt_number": 4
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example 4.4 Page 48"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "#initiation of variable\n",
- "P0=400000.0;#in Rs\n",
- "P=200000.0;#in Rs\n",
- "i=18.0;#in % per annum\n",
- "n=10.0;#in years\n",
- "\n",
- "#calcualtion\n",
- "PW=P0+P*(((1+i/100)**n)-1)/((i/100)*(1+i/100)**n);#in RS\n",
- "\n",
- "#result\n",
- "print \"The present worth of alternative 2 in RS. \",round(PW,3);\n",
- "print \"The present worth of 2nd alternative is less than that of first one i.e., complete downpayment of Rs. 1600000. Hence, select 2nd alternative.\";\n"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "The present worth of alternative 2 in RS. 1298817.259\n",
- "The present worth of 2nd alternative is less than that of first one i.e., complete downpayment of Rs. 1600000. Hence, select 2nd alternative.\n"
- ]
- }
- ],
- "prompt_number": 5
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example 4.5 Page 49"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "#initiation of variable\n",
- "#plan 1\n",
- "P0=-1000.0;#in Rs\n",
- "P=12000.0;#in Rs\n",
- "i=12.0;#in % per annum\n",
- "n=15.0;#in years\n",
- "\n",
- "#calculation\n",
- "PW1=P0+P*1/((1+i/100)**n);#in RS\n",
- "\n",
- "#result\n",
- "print \"The present worth of Plan-1 in RS. \",round(PW1,3);\n",
- "\n",
- "#plan 2\n",
- "P0=-1000.0;#in Rs\n",
- "P=4000.0;#in Rs\n",
- "i=12.0;#in % per annum\n",
- "n1=10.0;#in years\n",
- "n2=15.0;#in years\n",
- "\n",
- "#calculation\n",
- "PW2=P0+P*1/((1+i/100)**n1)++P*1/((1+i/100)**n2);#in RS\n",
- "\n",
- "#result\n",
- "print \"The present worth of Plan-2 in RS.\",round(PW2,3);\n",
- "print \"The present worth of Plan-1 is more than that of Plan-1. Therefore plan 1 is the best plan from the investors point of view.\";"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "The present worth of Plan-1 in RS. 1192.355\n",
- "The present worth of Plan-2 in RS. 1018.678\n",
- "The present worth of Plan-1 is more than that of Plan-1. Therefore plan 1 is the best plan from the investors point of view.\n"
- ]
- }
- ],
- "prompt_number": 8
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example 4.6,Page 50"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "#initiation of variable\n",
- "#plan 1\n",
- "P0=-10000.0;#in Rs\n",
- "P=800000.0;#in Rs\n",
- "i=12.0;#in % per annum\n",
- "n=20.0;#in years\n",
- "\n",
- "#calcualtion\n",
- "PW1=P0*(((1+i/100)**n)-1)/((i/100)*(1+i/100)**n)+P*1/((1+i/100)**n);#in RS\n",
- "\n",
- "#result\n",
- "print \"The present worth of Plan-1 in RS. \",round(PW1,3);\n",
- "\n",
- "#plan 2\n",
- "P0=-10000.0;#in Rs\n",
- "P=1500000.0;#in Rs\n",
- "i=12.0;#in % per annum\n",
- "n1=20.0;#in years\n",
- "n2=25.0;#in years\n",
- "\n",
- "#calcualtion\n",
- "PW2=P0*(((1+i/100)**n1)-1)/((i/100)*(1+i/100)**n1)+P*1/((1+i/100)**n2);#in RS\n",
- "\n",
- "#result\n",
- "print \"The present worth of Plan-2 in RS. \",round(PW2,3);\n",
- "print \"The present worth of Innovative Investment Ltd. Plan is more than that of Novel Investment Ltd. Plan. Therefore Innovative Investment Ltd. Plan is the best plan from the investors point of view.\";\n",
- "print \"answer is bit different due to approximation error\""
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "The present worth of Plan-1 in RS. 8238.976\n",
- "The present worth of Plan-2 in RS. 13540.524\n",
- "The present worth of Innovative Investment Ltd. Plan is more than that of Novel Investment Ltd. Plan. Therefore Innovative Investment Ltd. Plan is the best plan from the investors point of view.\n",
- "answer is bit different due to approximation error\n"
- ]
- }
- ],
- "prompt_number": 1
- },
- {
- "cell_type": "heading",
- "level": 2,
- "metadata": {},
- "source": [
- "Example 4.7 Page 50"
- ]
- },
- {
- "cell_type": "code",
- "collapsed": false,
- "input": [
- "#initiation of variable\n",
- "P=12000.0;#in Rs\n",
- "A1=10000.0;#in Rs\n",
- "G=1000.0;#in Rs\n",
- "i=18.0;#in % per annum\n",
- "n=10.0;#in years\n",
- "\n",
- "#calculation\n",
- "PW=-P+(A1+G*(((1+i/100)**n)-i*n/100-1)/(((i/100)*(1+i/100)**n)-i/100))*(((1+i/100)**n)-1)/((i/100)*(1+i/100)**n);#in RS\n",
- "\n",
- "#result\n",
- "print \"The present worth of the small business in RS. \",round(PW,3);"
- ],
- "language": "python",
- "metadata": {},
- "outputs": [
- {
- "output_type": "stream",
- "stream": "stdout",
- "text": [
- "The present worth of the small business in RS. 47293.316\n"
- ]
- }
- ],
- "prompt_number": 13
- }
- ],
- "metadata": {}
- }
- ]
-} \ No newline at end of file