Question Choose f(x) appropriately and determine the corresponding difference eq
ID: 2988779 • Letter: Q
Question
Question
Choose f(x) appropriately and determine the corresponding difference equation for finding the rth root of sin. Do five iterations to calulate the solution of xsinx=4 using xo=1 as the initial guess.
Write a simple Matlab program to demonstrate this.
It is desired to determine a recursive expression (difference equation) for finding the rth root of a real number N. We start by writing the Taylor series expansion of function fix) about a point x0: where If the series is truncated after two terms, we have Let x represent the next iterate xn+1, and let x also represent a solution of the equation fix) = 0. Then Eq. (P2-4-2) becomes Equation (P2-4-4) is a difference equation useful for solving f(x) = 0.