Question

lowest positive root of f(x)= 8sin(e-x)-1

Determine the lowest positive root of f (x) = 8sin(x)ex – 1:

(a) Graphically.

(b) Using the Newton-Raphson method (three iterations, xi = 0.3).

(c) Using the secant method (three iterations, xi–1 = 0.5 and xi = 0.4.

(d) Using the modified secant method (five iterations, xi = 0.3, δ = 0.01).

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a. Write the following code on the console.

Code:

>> x = linspace(0,4);

>> y = 8*sin(x).*exp(-x)-1;

>> plot(x,y); grid

Output:

The lowest positive root seems to be at approximately 0.15.

b. Newton- Raphson

i

x i

f ( x ) f ' ( x ) εa

0

1

2

3

0.3

0.107 8 44

0.143 4 87

0.145 0 12

0.751414 3.910431

-0.22695 6.36737 178.180%

-0.00895 5.868388 24.841%

-1.6E-05 5.847478 1.052%

c. Secant

i x i 1 f(xi1)

x i

f ( x i ) εa

0 0.5 1.32629

1 0.4 1.088279

2 -0.05724 -1.48462

3 0.206598 0.334745

4 0.158055 0.075093

5 0.144016 -0.00585

0.4

-0.05 7 24

0.206 5 98

0.158 0 55

0.144 0 16

0.145 0 3

1.088279

-1.48462 798.821%

0.334745 127.706%

0.075093 30.713%

-0.00585 9.748%

9E-05 0.699%

d. Modified Secant

i

x

x + dx f ( x ) f ( x + d x ) f ' ( x ) εa

0

1

2

3

4

5

0.3

0.107 0 07

0.143 4 63

0.145 0 15

0.145 0 15

0.145 0 15

0.303 0.751414 0.763094 3.893468

0.108077 -0.23229 -0.22547 6.371687 180.357%

0.144897 -0.00909 -0.00069 5.858881 25.412%

0.146465 -1.2E-06 0.008464 5.83752 1.070%

0.146465 2.12E-09 0.008465 5.837517 0.000%

0.146465 -3.6E-12 0.008465 5.837517 0.000%

Add a comment
Know the answer?
Add Answer to:
lowest positive root of f(x)= 8sin(e-x)-1
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 2) (15 points) a) Determine the roots of f(x)=-12 – 21x +18r? - 2,75x' graphically. In...

    2) (15 points) a) Determine the roots of f(x)=-12 – 21x +18r? - 2,75x' graphically. In addition, determine the first root of the function with b) bisection and c) false-position. For (b) and (c), use initial guesses of x, =-land x, = 0, and a stopping criterion of 1%. 3) (25 points) Determine the highest real root of f(x) = 2x – 11,7x² +17,7x-5 a) Graphically, b) Fixed-point iteration method (three iterations, x, = 3) c) Newton-Raphson method (three iterations,...

  • 6.5 Employ the Newton-Raphson method to determine a real root for 4x20.5 using initial guesses of...

    6.5 Employ the Newton-Raphson method to determine a real root for 4x20.5 using initial guesses of (a) 4.52 f(x) 15.5x Pick the best numerical technique, justify your choice and then use that technique to determine the root. Note that it is known that for positive initial guesses, all techniques except fixed-point iteration will eventually converge. Perform iterations until the approximate relative error falls below 2 %. If you use a bracket- ing method, use initial guesses of x 0 and...

  • Use the Newton-Raphson method to find the root of f(x) = e-*(6 - 2x) - 1...

    Use the Newton-Raphson method to find the root of f(x) = e-*(6 - 2x) - 1 Use an initial guess of xo = 1.2 and perform 3 iterations. For the N-R method: Xi+1 = x; - f(x;) f'(x;)

  • 3. (30 pts) (Problem 6.2) Determine the highest real root of f(x) 2x3- 11.7x2 + 17.7x...

    3. (30 pts) (Problem 6.2) Determine the highest real root of f(x) 2x3- 11.7x2 + 17.7x -5 a) Graphically. b) Write a MATLAB program using the fixed-point method to determine the root with xo- Write a MATLAB program using the Newton-Raphson method to determine the root with Xo-3. c) d) Write a MATLAB program using the secant method to determine the root with x-1-3 and Xo- 4. e) Compare the relative errors between these three methods at the third iteration...

  • L. Determine the real root(s) off(x)--5xs + 14x3 + 20x2 + 10x a. Graphically on a graph paper. b....

    l. Determine the real root(s) off(x)--5xs + 14x3 + 20x2 + 10x a. Graphically on a graph paper. b. Using Bisection method c. Using False Position method to determine the root, employing initial guesses of x-2 d. Using the Newton Raphson methods to determine the root, employing initial guess to determine the root, employing initial guesses ofxn-2 and Xu-4 and Es= 18%. and r 5.0 andas answer. 1%. was this method the best for these initial guesses? Explain your xo--l...

  • 3. Find the positive root of In(x²) = 0.7 20-points a) Using three iterations of the...

    3. Find the positive root of In(x²) = 0.7 20-points a) Using three iterations of the bisection method with initial guesses of Xi on method with initial guesses of x = 0.5 and Xu 2, and b) Using three iterations of the Secant method, with the same initial guesses as in .

  • 45-3. Modify the code used in Example 4 to find the root only at f(x)<0.01 using...

    45-3. Modify the code used in Example 4 to find the root only at f(x)<0.01 using Newton-Rephson Method without showing any iteration. Also find the root of equation, f(x) = x 9-3x -10, take initial guess, Xo=2 العقدة College of 9:05 mybb.qu.edu.ca Numerical Methods (Lab.) GENG 300 Summer 2020 5.1.2 Open Methods - Newton-Raphson Method f(x) *1+1 = x; - Matlab Code Example:4 function mynewtraph.t1.x0,-) XXO for ilin x - x - x)/1 x) disp 1 x) <0.01 break end...

  • 1. This question concerns finding the roots of the scalar non-linear function f(x) = r2-1-sinx (1...

    1. This question concerns finding the roots of the scalar non-linear function f(x) = r2-1-sinx (1 mark) (b) Apply two iterations of the bisection method to f(x) 0 to find the positive root. (3 marks) (c) Apply two iterations of the Newton-Raphson method to find the positive root. Choose (3 marks) (d) Use the Newton-Raphson method and Matlab to find the positive root to 15 significant (3 marks) (a) Use Matlab to obtain a graph of the function that shows...

  • 4) (16 points) The function f(x)= x? – 2x² - 4x+8 has a double root at...

    4) (16 points) The function f(x)= x? – 2x² - 4x+8 has a double root at x = 2. Use a) the standard Newton-Raphson, b) the modified Newton-Raphson to solve for the root at x = 2. Compare the rate of convergence using an initial guess of Xo = 1,2. 5) (14 points) Determine the roots of the following simultaneous nonlinear equations using a) fixed-point iteration and b) the Newton-Raphson method: y=-x? +x+0,75 y + 5xy = r? Employ initial...

  • 5.1.2 Open Methods - Newton-Raphson Method Xi+1= xi – FOTO Matlab Code Example:4 function mynewtraph (f,...

    5.1.2 Open Methods - Newton-Raphson Method Xi+1= xi – FOTO Matlab Code Example:4 function mynewtraph (f, f1,x0,n) Xx0; for ilin x = x - f(x)/f1(x); disp (li if f(x) <0.01 f(x))) break end end end Matlab Code from Chapra function [root, ea, iter)=newtraph (func,dfunc, xr, es,maxit,varargin) newtraph: Newton-Raphson root location zeroes 8 [root, ea, iter)-newtraph (func, dfunc, xr, es,maxit,pl,p2, ...): $uses Newton-Raphson method to find the root of fune input: func- name of function 8dfunc = name of derivative of...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT