You are on page 1of 9

TUGAS 1

PENGANTAR KOMPUTASI PROSES

Oleh:

ALFEIN RAHMAD
0707112432

PROGRAM STUDI TEKNIK KIMIA


FAKULTAS TEKNIK
UNIVERSITAS RIAU
2008
I. Advanced Spreadsheet Feature for Chemical Engineering
Calculation

Tabel 1. Table to hold information for example using labels and named
ranges

A B C D E F G
1 T(C) 105
533.807 533.807
2 P(mmHg)
4 4
3 comp x A B C Psat yP
1001.02 0.18752
4 1 0.1 8.37895 1788.02 227.438
1 5
481.894 0.81247
5 2 0.9 7.81028 1522.56 191.95
7 5

Table 2. Table for illustrating matrix multiplication

A B C D E F
7 1 3 4
8 2 5 6
9
10 11 13 16
11 17

Table 3. Table for fitting Antoine coefficients

A B C D E F
1 A B C OBJ
2 7.5 1500.0 273.0 1.3
3 (C) (mmHg)
4 Temp Pexpt Pcalc log_Pexp Log_Pcalc Error
5 6.7 40 137.1233 1.60206 2.137111 0.28628
6 14.7 60 193.3017 1.778151 2.286236 0.25815
7 25.5 100 298.4519 2 2.474874 0.225506
8 42.0 200 547.1359 2.30103 2.738095 0.191026
9 60.8 400 1014.591 2.60206 3.006291 0.163403
10 80.7 760 1816.009 2.880814 3.259118 0.143114
Table 4. Illustration of creating histogram of exam scores

A B C D E
1 Student Score Histogram Data
2 1 100 Count of score
3 2 98 Score Total
4 3 37 37 1
5 4 67 67 2
6 5 84 80 1
7 6 98 84 1
8 7 67 98 2
9 8 100 100 2
10 9 80 Grand Total 9

Histogram of Exam Scores (Table 4)

2.5

II.
1.5
C
o

l
0.5

o
0
37 67 80 84 98 100
ur by Numbers:
Solving Algebraic Equations Without Algebra
1. y  1  x  2 x 2 on  5  x  5

x dy/dx d2y/dx 2 y a b n h
-5 e stimate estimate 56 -5 5 30 0.3333
-4.66667 -19.6667 4 49.22222
-4.33333 -18.3333 4 42.88889
-4 -17 4 37
-3.66667 -15.6667 4 31.55556
-3.33333 -14.3333 4 26.55556
-3 -13 4 22
-2.66667 -11.6667 4 17.88889
-2.33333 -10.3333 4 14.22222
-2 -9 4 11 60
-1.66667 -7.66667 4 8.222222
-1.33333 -6.33333 4 5.888889
-1 -5 4 4 50
-0.66667 -3.66667 4 2.555556
-0.33333 -2.33333 4 1.555556
0 -1 4 1
40
0.333333 0.333333 4 0.888889
0.666667 1.666667 4 1.222222
30
1 3 4 2
1.333333 4.333333 4 3.222222
1.666667 5.666667 4 4.888889 20
2 7 4 7
2.333333 8.333333 4 9.555556
2.666667 9.666667 4 12.55556 10
3 11 4 16
3.333333 12.33333 4 19.88889
3.666667 13.66667 4 24.22222 0
4 15 4 29 -10 -5 0 5 10
4.333333 16.33333 4 34.22222
4.666667 17.66667 4 39.88889
5 e stimate estimate 46

2. y  1  x 8  x  x 2 on 0  x  5

x dy/dx d2y/dx 2 y a b n h
-2 e stimate estimate -9.32456 -2 5 30 0.2333
-1.76667 6.940949 -2.30553 -7.64224
-1.53333 6.402368 -2.31087 -6.08545
-1.3 5.86251 -2.31648 -4.65447
-1.06667 5.321312 -2.32236 -3.34961
-0.83333 4.778705 -2.32856 -2.17119
-0.6 4.234614 -2.33508 -1.11955
-0.36667 3.688959 -2.34196 -0.19503
-0.13333 3.141652 -2.34924 0.601969
0.1 2.592596 -2.35695 1.271069 4
0.333333 2.041687 -2.36513 1.811847
0.566667 1.48881 -2.37382 2.223857 2
0.8 0.933838 -2.38308 2.506625 0
1.033333 0.376632 -2.39297 2.659648
-4 -2 0 2 4 6
1.266667 -0.18296 -2.40357 2.682387 -2
1.5 -0.74512 -2.41493 2.574265
-4
1.733333 -1.31003 -2.42717 2.334663
1.966667 -1.87792 -2.44039 1.962915 -6
2.2 -2.44901 -2.45471 1.458302
2.433333 -3.02359 -2.47028 0.820043 -8
2.666667 -3.60197 -2.48728 0.047292
-10
2.9 -4.18451 -2.50591 -0.86088
3.133333 -4.77162 -2.52644 -1.90548 -12
3.366667 -5.36378 -2.54918 -3.08763
3.6 -5.96154 -2.5745 -4.40858 -14
3.833333 -6.56557 -2.60288 -5.86969 -16
4.066667 -7.17664 -2.63491 -7.47251
4.3 -7.79571 -2.67137 -9.21878 -18
4.533333 -8.42391 -2.71323 -11.1105
4.766667 -9.06266 -2.76179 -13.1499
5 e stimate estimate -15.3397

3. y  e x x 2  5 on  4  x  2
x dy/dx d2y/dx 2 y a b n h
-4 estimate estimate -4.70695 -4 2 30 0.2000
-3.8 0.152663 0.027444 -4.67697
-3.6 0.156903 0.014952 -4.64588
-3.4 0.158224 -0.00174 -4.6142
-3.2 0.155722 -0.02328 -4.5826
-3 0.148365 -0.05028 -4.55192
-2.8 0.135014 -0.08322 -4.52325
-2.6 0.114461 -0.12231 -4.49791
-2.4 0.085495 -0.16735 -4.47746
-2.2 0.047014 -0.21745 -4.46371 30
-2 -0.0018 -0.27066 -4.45866
-1.8 -0.06122 -0.32351 -4.46443 25
-1.6 -0.1306 -0.37029 -4.48314
-1.4 -0.20784 -0.40213 -4.51667
20
-1.2 -0.28863 -0.40575 -4.56628
-1 -0.36537 -0.36172 -4.63212
-0.8 -0.42577 -0.24224 -4.71243 15
-0.6 -0.4508 -0.00807 -4.80243
-0.4 -0.41206 0.395475 -4.89275 10
-0.2 -0.26813 1.043819 -4.96725
1.28E-15 0.040267 2.040134 -5 5
0.2 0.59673 3.524493 -4.95114
0.4 1.517767 5.685874 -4.76131
0
0.6 2.964136 8.777815 -4.34404
0.8 5.155798 13.13881 -3.57565 -6 -4 -2 0 2 4
1 8.391555 19.21877 -2.28172 -5
1.2 13.07478 27.61343 -0.21903
1.4 19.74699 39.10869 2.948192 -10
1.6 29.13166 54.73809 7.679763
1.8 42.19115 75.8568 14.60086
2 estimate estimate 24.55622

4. y  x 3  x 2  x  2 on  5  x  5

x dy/dx d2y/dx 2 y a b n h
-5 estimate estimate -157 -5 5 30 0.3333
-4.66667 75.77778 -30 -130.074
-4.33333 66.11111 -28 -106.481
-4 57.11111 -26 -86
-3.66667 48.77778 -24 -68.4074
-3.33333 41.11111 -22 -53.4815
-3 34.11111 -20 -41
-2.66667 27.77778 -18 -30.7407
-2.33333 22.11111 -16 -22.4815
-2 17.11111 -14 -16 150
-1.66667 12.77778 -12 -11.0741
-1.33333 9.111111 -10 -7.48148
-1 6.111111 -8 -5
100
-0.66667 3.777778 -6 -3.40741
-0.33333 2.111111 -4 -2.48148 50
0 1.111111 -2 -2
0.333333 0.777778 0 -1.74074
0.666667 1.111111 2 -1.48148 0
1 2.111111 4 -1 -10 -5 0 5 10
1.333333 3.777778 6 -0.07407 -50
1.666667 6.111111 8 1.518519
2 9.111111 10 4
2.333333 12.77778 12 7.592593 -100
2.666667 17.11111 14 12.51852
3 22.11111 16 19
-150
3.333333 27.77778 18 27.25926
3.666667 34.11111 20 37.51852
4 41.11111 22 50 -200
4.333333 48.77778 24 64.92593
4.666667 57.11111 26 82.51852
5 estimate estimate 103

5. y  1  3 /( x 2  2) on 0  x  2
x dy/dx d2y/dx 2 y a b n h
-1 estimate estimate 0 -1 2 30 0.1000
-0.9 -0.68182 -0.11323 -0.06762
-0.8 -0.68602 0.029234 -0.13636
-0.7 -0.67411 0.208848 -0.20482
-0.6 -0.64257 0.422027 -0.27119
-0.5 -0.58851 0.659134 -0.33333
-0.4 -0.51037 0.903775 -0.38889
-0.3 -0.4085 1.133627 -0.43541
-0.2 -0.28565 1.323246 -0.47059
-0.1 -0.14706 1.448639 -0.49254 0.6
-1.4E-16 -1.1E-15 1.492537 -0.5
0.1 0.147059 1.448639 -0.49254
0.2 0.285653 1.323246 -0.47059 0.4
0.3 0.408497 1.133627 -0.43541
0.4 0.510367 0.903775 -0.38889
0.5 0.588512 0.659134 -0.33333 0.2
0.6 0.64257 0.422027 -0.27119
0.7 0.674114 0.208848 -0.20482
0.8 0.686018 0.029234 -0.13636 0
0.9 0.681818 -0.11323 -0.06762 -2 -1 0 1 2 3
1 0.665181 -0.21951 0
1.1 0.639535 -0.29341 0.065421 -0.2
1.2 0.607857 -0.34015 0.127907
1.3 0.572586 -0.36525 0.186992
1.4 0.535629 -0.3739 0.242424 -0.4
1.5 0.498405 -0.37058 0.294118
1.6 0.461927 -0.35898 0.342105
1.7 0.426878 -0.342 0.386503 -0.6
1.8 0.393688 -0.32181 0.427481
1.9 0.362595 -0.30004 0.465241
2 estimate estimate 0.5

6. y  sin 1 / x  on  1  x  1

x dy/dx d2y/dx 2 y a b n h
-3 estimate estimate -0.32719 -3 1 30 0.1333
-2.86667 -0.11457 -0.07485 -0.34181
-2.73333 -0.12524 -0.08521 -0.35775
-2.6 -0.13742 -0.09746 -0.3752
-2.46667 -0.15138 -0.11204 -0.39439
-2.33333 -0.16748 -0.12946 -0.41557
-2.2 -0.18614 -0.15036 -0.43905
-2.06667 -0.20786 -0.17549 -0.46521
-1.93333 -0.23327 -0.20566 -0.49448
-1.8 -0.26309 -0.24165 -0.52742 1.5
-1.66667 -0.29813 -0.28384 -0.56464
-1.53333 -0.33913 -0.33127 -0.60692
-1.4 -0.3865 -0.37927 -0.65508 1
-1.26667 -0.43934 -0.41335 -0.70998
-1.13333 -0.49308 -0.39273 -0.77224
-1 -0.53285 -0.20375 -0.84147 0.5
-0.86667 -0.51431 0.481871 -0.91433
-0.73333 -0.30405 2.671974 -0.97862
-0.6 0.51687 9.641802 -0.99541 0
-0.46667 3.20358 30.65885 -0.84079 -4 -3 -2 -1 0 1 2
-0.33333 6.748918 22.52122 -0.14112
-0.2 -1.90938 -152.396 0.958924 -0.5
-0.06667 -1.15739 163.6756 -0.65029
0.066667 -1.15739 -163.676 0.650288
0.2 -1.90938 152.3957 -0.95892 -1
0.333333 6.748918 -22.5212 0.14112
0.466667 3.20358 -30.6589 0.840787
0.6 0.51687 -9.6418 0.995408 -1.5
0.733333 -0.30405 -2.67197 0.978619
0.866667 -0.51431 -0.48187 0.914328
1 estimate estimate 0.841471

7. y  x 3  3 x  2 on  3  x  3
x dy/dx d2y/dx 2 y a b n h
-5 estimate estimate -108 -5 5 30 0.3333
-4.66667 62.44444 -28 -85.6296
-4.33333 53.44444 -26 -66.3704
-4 45.11111 -24 -50
-3.66667 37.44444 -22 -36.2963
-3.33333 30.44444 -20 -25.037
-3 24.11111 -18 -16
-2.66667 18.44444 -16 -8.96296
-2.33333 13.44444 -14 -3.7037
-2 9.111111 -12 0 150
-1.66667 5.444444 -10 2.37037
-1.33333 2.444444 -8 3.62963
-1 0.111111 -6 4 100
-0.66667 -1.55556 -4 3.703704
-0.33333 -2.55556 -2 2.962963
0 -2.88889 7.99E-15 2 50
0.333333 -2.55556 2 1.037037
0.666667 -1.55556 4 0.296296
1 0.111111 6 0 0
1.333333 2.444444 8 0.37037 -10 -5 0 5 10
1.666667 5.444444 10 1.62963
2 9.111111 12 4 -50
2.333333 13.44444 14 7.703704
2.666667 18.44444 16 12.96296
3 24.11111 18 20 -100
3.333333 30.44444 20 29.03704
3.666667 37.44444 22 40.2963
4 45.11111 24 54 -150
4.333333 53.44444 26 70.37037
4.666667 62.44444 28 89.62963
5 estimate estimate 112

8. Solve 4x  5  x 2  6x  2 for x . Use an algebraic method and an Excel


method.

a) Algebraic method

 4x  5  x 2  6x  2 berarti 
4x  5   x 2  6x  2  atau

4x  5   x  6x  2
2

 
4x  5   x 2  6x  2 
 x 2  10 x  3  0
x1  0.29
x 2  10.29
(Tidak ada x integer yang diperoleh)

 
4x  5   x 2  6x  2 
x  2x  7  0
2

(Semua nilai x merupakan bilangan imaginer, D  0 )

b) Excel method
x dy/dx d2y/dx 2 y a b n h
-2 estimate estimate -15 -2 11 30 0.4333
-1.56667 6.210256 2.970414 -12.5878
-1.13333 9.34359 11.49112 -9.61778
-0.7 11.4 -2 -4.49
-0.26667 10.53333 -2 0.262222
0.166667 9.666667 -2 4.638889
0.6 8.8 -2 8.64
1.033333 7.933333 -2 12.26556
1.466667 7.066667 -2 15.51556
1.9 6.2 -2 18.39 35
2.333333 5.333333 -2 20.88889
2.766667 4.466667 -2 23.01222 30
3.2 3.6 -2 24.76 25
3.633333 2.733333 -2 26.13222
4.066667 1.866667 -2 27.12889 20
4.5 1 -2 27.75
15
4.933333 0.133333 -2 27.99556
5.366667 -0.73333 -2 27.86556 10
5.8 -1.6 -2 27.36
6.233333 -2.46667 -2 26.47889 5
6.666667 -3.33333 -2 25.22222
0
7.1 -4.2 -2 23.59
7.533333 -5.06667 -2 21.58222 -5 0 5 10 15
-5
7.966667 -5.93333 -2 19.19889
8.4 -6.8 -2 16.44 -10
8.833333 -7.66667 -2 13.30556 -15
9.266667 -8.53333 -2 9.795556
9.7 -9.4 -2 5.91 -20
10.13333 -10.2667 -2 1.648889
10.56667 -11.1333 -2 -2.98778
11 estimate estimate -8

9. Solve x 2  2 x for x in Excel. Find all three solutions correct to six


decimal places each.

x dy/dx d2y/dx 2 y a b n h
-1 e stimate estimate 0.5 -1 5 30 0.2000
-0.8 -1.99938 1.72361 0.065651
-0.6 -1.65877 1.682511 -0.29975
-0.4 -1.32699 1.635301 -0.59786
-0.2 -1.00535 1.581071 -0.83055
0 -0.69537 1.518777 -1
0.2 -0.39877 1.44722 -1.1087
0.4 -0.11755 1.365023 -1.15951
0.6 0.146017 1.270602 -1.15572
0.8 0.389291 1.162142 -1.1011 2
1 0.609261 1.037554 -1
1.2 0.80246 0.89444 -0.8574 1
1.4 0.964909 0.730045 -0.67902
0
1.6 1.092034 0.541205 -0.47143
1.8 1.178583 0.324284 -0.2422 -2 0 2 4 6
-1
2 1.218522 0.075108 0
2.2 1.204921 -0.21112 0.245207 -2
2.4 1.129818 -0.53991 0.481968
2.6 0.984068 -0.91759 0.697134 -3
2.8 0.757166 -1.35143 0.875595
3 0.437044 -1.84978 1 -4
3.2 0.009842 -2.42224 1.050413
-5
3.4 -0.54036 -3.07982 1.003937
3.6 -1.23186 -3.83518 0.834267
-6
3.8 -2.08567 -4.70286 0.511191
4 -3.12591 -5.69957 0 -7
4.2 -4.38032 -6.84448 -0.73917
4.4 -5.88073 -8.15964 -1.75213 -8
4.6 -7.66373 -9.67036 -3.09147
4.8 -9.77134 -11.4057 -4.81762
5 e stimate estimate -7
10. Use an Excel model to determine k so that the equation x  kx  20
has a solution in 0  x  4 , and find that solution correct to 4 decimal
digits.

x k a b n h
1 -19 1 4 30 0.1000
1.1 -17.2284
1.2 -15.7538
1.3 -14.5076
1.4 -13.4406
1.5 -12.5168
1.6 -11.7094
1.7 -10.9977
1.8 -10.3658
1.9 -9.80084 0
2 -9.29289 0 1 2 3 4 5
2.1 -8.83374 -2
2.2 -8.41671
2.3 -8.03627
-4
2.4 -7.68784
-6
2.5 -7.36754
2.6 -7.07213 -8
2.7 -6.79883
2.8 -6.54524 -10
2.9 -6.30933
3 -6.08932 -12
3.1 -5.88365
-14
3.2 -5.69098
3.3 -5.51012
-16
3.4 -5.34003
3.5 -5.17976 -18
3.6 -5.02851
3.7 -4.88553 -20
3.8 -4.75017
3.9 -4.62184
4 -4.5

You might also like