Given the function f(x) = cos(x) - sin(x) defined on the interval [0.0, n/2]. The angle is in radain. a) Start with initial value x = 0.0. Find the approximated root after 5 iterations, using the Flxed Point iteration method. Show your result for 5 iterations. Show your results in a table. b) Start with initial value x = 0.0. Use the Newton-Raphson method to find the root of the function f(x). Stop running after 5 iterations. Show your results in a table. c) Start with 0.0 and 1/3 and find the root of the function using the SecantMethod. Stop running after 5 iterations. Show your results in a table.

Linear Algebra: A Modern Introduction
4th Edition
ISBN:9781285463247
Author:David Poole
Publisher:David Poole
Chapter6: Vector Spaces
Section6.7: Applications
Problem 18EQ
icon
Related questions
Question
Numerical analysis
Given the function f(x) = cos(x) - sin(x)
defined on the interval [0.0, 1/2]. The
angle is in radain.
a) Start with initial value x = 0.0. Find the
approximated root after 5 iterations,
using the Flxed Point iteration method.
Show your result for 5 iterations. Show
your results in a table.
b) Start with initial value x = 0.0. Use the
Newton-Raphson method to find the root
of the function f(x). Stop running after 5
iterations. Show your results in a table.
c) Start with 0.0 and 1/3 and find the root
of the function using the SecantMethod.
Stop running after 5 iterations. Show your
results in a table.
d) Based on your results in a), b), and c)
above, which one may converge first?
Transcribed Image Text:Given the function f(x) = cos(x) - sin(x) defined on the interval [0.0, 1/2]. The angle is in radain. a) Start with initial value x = 0.0. Find the approximated root after 5 iterations, using the Flxed Point iteration method. Show your result for 5 iterations. Show your results in a table. b) Start with initial value x = 0.0. Use the Newton-Raphson method to find the root of the function f(x). Stop running after 5 iterations. Show your results in a table. c) Start with 0.0 and 1/3 and find the root of the function using the SecantMethod. Stop running after 5 iterations. Show your results in a table. d) Based on your results in a), b), and c) above, which one may converge first?
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer