Professional Documents
Culture Documents
Short Cut (Goal Seek)
Short Cut (Goal Seek)
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:
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.
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
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
Penyelesaian
1. Dengan Excel