0% menganggap dokumen ini bermanfaat (0 suara)
370 tayangan3 halaman

Penyelesaian Soal Metode Secant

Diunggah oleh

odock
Hak Cipta
© Attribution Non-Commercial (BY-NC)
Kami menangani hak cipta konten dengan serius. Jika Anda merasa konten ini milik Anda, ajukan klaim di sini.
Format Tersedia
Unduh sebagai DOC, PDF, TXT atau baca online di Scribd
0% menganggap dokumen ini bermanfaat (0 suara)
370 tayangan3 halaman

Penyelesaian Soal Metode Secant

Diunggah oleh

odock
Hak Cipta
© Attribution Non-Commercial (BY-NC)
Kami menangani hak cipta konten dengan serius. Jika Anda merasa konten ini milik Anda, ajukan klaim di sini.
Format Tersedia
Unduh sebagai DOC, PDF, TXT atau baca online di Scribd

Diketahui Soal Sebagai Berikut: Sin2 x - Ln x2 + 3x3 + 4x2 - 8x - 1 = 0 Selesaikan soal diatas dengan metode Secant. Penyelesaian: 1.

Flow Chart START

f(x)= Sin2 x - Ln x2 + 3x3 + 4x2 - 8x - 1 = 0

Pilih nilai awal xi & xi-1 Sembarang

Hitung f (xi) & f(xi-1)

Apakah f(xi+1) < 0,0001 tidak xi = xi+1

ya

FINISH

Gambar 1. Flow Chart Metode Secant 1

2. Listing Program ! ! PENYELESAIAN AKAR - AKAR PERSAMAAN DENGAN MENGGUNAKAN METODE SECANT F(X)=SIN(SIN(X))-LOG(X**2)+3.*X**3+4.*X**2-8.*X-1. OPEN(5,FILE='[Link]') I=0 X1=1. X2=X1+1 30 I=I+1 FX=(F(X2)-F(X1))/(X2-X1) XT=X2-F(X2)/FX ! I=I+1 WRITE(5,2)I,X1,X2,XT,F(X1),F(X2),F(XT) X1=X2 X2=XT IF(ABS(F(XT)).LT.0.0001)GOTO 25 GOTO 30 2 3 25 FORMAT(I2,6F10.5) FORMAT(2F5.2) STOP END

Gambar 2. Listing Program Fortran 3. Hasil Program

Gambar 3. Hasil Program

Common questions

Didukung oleh AI

A hypothetical scenario where the Secant method fails to converge could involve choosing initial values that lead to oscillation or divergence. If x1 and x2 are chosen very far from the actual root or in a steep region of f(x), the intermediate values may oscillate across a local maximum or minimum, never approaching the root. Factors contributing to this failure include extremely steep slopes, points of discontinuity, or being too close to an inflection point where the slope changes rapidly.

The original function is comprised of multiple terms including a trigonometric component, a logarithmic function, and polynomial terms. The key transformation in numerical root finding involves simplifying these into a continuous function f(x) that can be evaluated iteratively. This means ensuring that at each step functions like sin^2(x) and ln(x^2) are computationally viable and contribute consistently to the equation's balance.

The Secant method iteratively approximates the root of an equation by using a linear interpolation between two points, x_i and x_(i+1), on the function. It updates these values using the formula x_(i+1) = x_i - f(x_i)(x_i - x_(i-1))/(f(x_i) - f(x_(i-1))). This method can converge faster than the bisection method, but slower than Newton's method under optimal conditions. However, it does not guarantee convergence for all initial values and is sensitive to the selection of starting points.

The convergence criterion in the Fortran program is implemented using the condition IF(ABS(F(XT)).LT.0.0001)GOTO 25. This checks whether the absolute value of the function at the latest estimate, XT, is less than 0.0001, indicating sufficient closeness to the root, at which point the iteration stops.

The Secant method, while faster than the bisection method, does not guarantee convergence like the bisection method does. It is also less stable compared to Newton's method, which uses derivative information for better accuracy and stability. The method's success heavily depends on the initial guesses, which can lead to divergence or slower convergence if poorly chosen. Additionally, it may struggle with functions that are not well-behaved or exhibit perpendicular intersections with the x-axis.

The Secant method is used to find the roots of the equation f(x) = 0. In this context, the specific function is f(x) = sin^2(x) - ln(x^2) + 3x^3 + 4x^2 - 8x - 1.

The iterative process in the Secant method is terminated when the absolute function value at the estimated root is less than a specified tolerance (0.0001 in this case). This threshold is chosen to ensure the root is sufficiently close to zero to be acceptable for practical purposes, balancing precision and computation cost. It prevents unnecessary computation once a desired level of accuracy is reached.

The output file 'ISMUNANDAR.HAS' captures the progression of iterations, including values of x1, x2, XT, and function evaluations at each step. This file is significant because it allows for post-execution analysis of the algorithm's performance, verifying the progression towards convergence and helping identify any anomalies or oscillations.

Changing the initial values x1 and x2 affects the trajectory and speed of convergence in the Secant method. Properly chosen initial values can lead to rapid convergence to a root, while poor choices may result in divergence or convergence to a wrong root or complex number. The method is not self-correcting and does not use interval bounds to ensure a root lies within, making the choice of x1 and x2 critical for success.

The flow chart provides a visual representation of the steps involved in the Secant method. It guides the process by outlining the sequence of computational steps - selecting initial values, computing function values, updating estimates, and checking for convergence. The chart ensures that the algorithm proceeds logically and efficiently towards finding the root by iterating until the result is sufficiently close to zero.

Anda mungkin juga menyukai