Anda di halaman 1dari 11

A.

Mencari Akar Persamaan Menggunakan Metode GOAL SEEK Program Excel


Misal persamaan : f ( x) x 2 2 x 8
Step 1 Open a spreadsheet and put the following statement in cell B1:
=A1*A1-2*A1-8
Cell B1 is the equation that should be zero, and cell A1 contains the
variable that is
adjusted to make this happen.

Step 2 Under Tools choose Goal Seek. When a small screen appears, fill in
the spaces to
show the following:

Step 3 Click OK. The answer appears in the spreadsheet:


-2.000007

4.1137E-06

Thus the solution found is 2, with a tiny error a small fraction of a


percent. The test of
whether the calculation is correct is shown in cell B1, which is 4.1 x 10-6.
This is not
zero, but it is small enough for most purposes.
Step 4 If you want to decrease the tolerance to make the solution more
accurate, under
Tools and Options choose Calculation. Then, in Maximum Change add a
few zeros in the
middle (changing it from 0.001 to 0.000001), add a zero to the maximum
number of iterations,choose OK, and repeat the Goal Seek.

This time the answer is

Method A:

With Classic Menu for Office 2007/2010/2013


installed, you can click Menus tab to get back the
classic style interface.
Click Data menu, move to What-If Analysis.
Click What-If Analysis, and choose the Goal Seek
option, then the Goal Seek window will pop up.

Method B:

B. Mencari Akar Persamaan Menggunakan Perintah fzero pada MATLAB


Misal persamaan : f ( x) x 2 2 x 8
Step 1 Define the function. It is created using an m-file, called here f.m.

Step 2 Check the function. Issue the command

You can easily calculate Eq. (2.18) to see that, for x = 2, the function
value is 8.
f ( x) x 2 2 x 8
f ( 2) 2 2 2 2 8
f ( 2) 8

Now you know the f.m. is correct.

Step 3 To find the value of x that makes f (x) = 0 in MATLAB, use the
fzero function.
In the command window, issue the following command:

This command solves the following problem for x:


f (x) = 0
starting from an initial guess of x0. Sometimes the function will have more
than one
solution, and that can be determined only by using the command with a
different x0.
When examining the command fzero(f , x0) in MATLAB, the f defines
which problem to solve, the x0 is your best guess of the solution, and
fzero tells MATLAB to vary x, starting from x0 until the f is zero. In Excels
Goal Seek, the analogous steps were to make a cell zero by varying the
value of another cell. Goal Seek becomesfzero, a cell with an equation
becomes f, and another cell becomes x0.
Step 3 For the example used above, you can find the other root by
running the program with
x0 = 3 in Eq. (2.21). Multiple roots can be found only if you search for
them starting with different guesses.

APLIKASI UNTUK PERSAMAAN KEADAAN


1. Van der Waals

2. Redlich Kwong (RK)

3. Redlich Kwong Soave (RKS)

4. Peng Robinson

CONTOH KASUS
Hitung Volume Spesifik dari n-butane pada 500 K dan 18 atm menggunkan persamaan RK.
Penyelesaian
1. Dengan Excel

Anda mungkin juga menyukai