0% found this document useful (0 votes)
39 views2 pages

ENG-Mohammad Musleh

1. The secant method was used to find the root of the function f(x) = x^3 - 2x^2 - 6x + 4, starting with initial guesses of x1 = -3 and x0 = -4. The approximate root found was -0.89693. 2. Repeating the secant method for the same function, but with initial guesses of x1 = 3 and x0 = 2, the approximate root was found to be 2.2301. 3. The secant method was applied to the function f(x) = sin(x) + cos(1+x) - 1 with different initial guesses each time. The approximate roots found

Uploaded by

ibm2002i
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views2 pages

ENG-Mohammad Musleh

1. The secant method was used to find the root of the function f(x) = x^3 - 2x^2 - 6x + 4, starting with initial guesses of x1 = -3 and x0 = -4. The approximate root found was -0.89693. 2. Repeating the secant method for the same function, but with initial guesses of x1 = 3 and x0 = 2, the approximate root was found to be 2.2301. 3. The secant method was applied to the function f(x) = sin(x) + cos(1+x) - 1 with different initial guesses each time. The approximate roots found

Uploaded by

ibm2002i
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ENG-Mohammad Musleh

Ibraheem mohammad / 2020699


Secant Method
1. Use the MATLAB implementation of the Secant method to find a root of the function
ƒ(𝑥) = 𝑥3 − 2𝑥2 − 6𝑥 + 4 using the initial guesses 𝒙 𝟏 = −𝟑 𝑎𝑛𝑑 𝒙𝟎 = −𝟒
Iteration 𝗑i 𝑓(𝗑i) 𝑓(𝗑i−1) 𝗌𝑎,i(%)
-4 58 33 Inf
0
-1.68 9.1872 58 138.1
1
-1.2433 3.6111 9.1872 35.119
2
-0.96057 0.61032 3.6111 29.439
3
-0.90305 0.058715 0.61032 6.3689
4
-0.89693 0.0011687 0.058715 0.68255
5

The approximate root is: -0.89693


--------------------------------------------------------------------------------------------------------------------------------
2. Repeat step 2 using the initial guesses 𝒙 𝟏 = 𝟑 𝑎𝑛𝑑 𝒙𝟎 = 𝟐

Iteration 𝗑i 𝑓(𝗑i) 𝑓(𝗑i−1) 𝗌𝑎,i(%)


0 2 -2 9 Inf

2.1818 -0.44628 -2 8.3333


1

2 2.234 0.036668 -0.44628 2.3377

3 2.2301 -0.00057407 0.036668 0.1778

4 2.2301 -7.1585e-07 -0.00057407 0.0027407

5 2.2301 1.4012e-11 -7.1585e-07 3.4218e-06

The approximate root is: 2.2301


----------------------------------------------------------------------------------------------------------------------------------
3. Use the MATLAB implementation of the Secant method to find a root of the function
ƒ(𝑥) = sin(x) + cos (1+x) -1 :

a- Using the initial guesses 𝒙 𝟏 = 𝟏 𝑎𝑛𝑑 𝒙𝟎 = 𝟑 , the approximate root is :

The approximate root is: 2.5599

b- Using the initial guesses 𝒙 𝟏 = −𝟓 𝑎𝑛𝑑 𝒙𝟎 = 𝟎 , the approximate root is :

The approximate root is: -151.3644

c- Using the initial guesses 𝒙 𝟏 = 𝟏. 𝟓 𝑎𝑛𝑑 𝒙𝟎 = 𝟖. 𝟓 , the approximate root is :

The approximate root is: 4.0901

You might also like