Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2 0 7 2 U ASSIGNMENT 2 , 2 0 2 4 Iteration and recursion Due: February 2 nd , 1 7 : 0 0
U
ASSIGNMENT
Iteration and recursion
Due: February nd: Push the function for Steffenson's iteration for a and a script for b to your assignmment repository. Make sure to use the inputoutput specified in the templates and check the result of the autograder. Typset your solution for question in LaTeX and push botht the tex and the pdf file to your repository.
Make sure all files submitted include a comment line with your name and student number, eg
# Peter Peterson
and list the names and student numbers of class mates you collaborated with, if any.
Also, be a good programmer and include comments with a brief description of the functionality, input and output arguments and usage of each function or script. Also, add some comments that explain what steps are taken. Marks will be awarded or subtracted based on the readability and transparency of your code.
A discussion thread for this assignment is available on Slack. Pose your questions there before approaching the lecturer or TA
Question
marks
You wish you use bisection for finding a root of the continuous functions below. For each function, use tools from calculus to find a domain a b that contains precisely one root so that you satisfy the sufficient condition for bisection to converge if the function has more than one root, select the one closest the to origin.
Note that, while looking at a graph is a good starting point, it is not sufficient.
a fxx cosx
b fxx x
c fx xlnxx x
d fxxx
e fx expx x
Question
a Write a function that implements the following pseudocode: Input: f f x N
Output: x
Repeat N times:
a Set y x
b Take one Newton step, starting from y Call the result yc Take one Newton step, starting from y Call the result yd Set
marks
x y
Yy Y
e Display fx
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started