Math 382 Homework 7 [corrected]
Math 382 Homework 7 [corrected]
otal 60 Points
1. Write a python function
cobweb(f, x0, n, xmin, xmax, ymin, ymax)
to draw a cobweb
plot of xed point iteration, where
f
name of function to plot.
x0
starting point value of x.
n
number of xed point iterations.
xmin
minimum value for x-axis on plot
xmax
maximum value for x-axis on plot
ymin
minimum value for y-axis on plot
ymax
maximum value for y-axis on plot
This is a reminder of what a typical cobweb plot looks like (not for the function you are
working with though, so your cobweb will look dierent).
Demonstrate that your cobweb plot works with the function call
cobweb(cos, 1.0, 200,0, 1.5, 0, 1)
2. Explore the convergence of the logistic map using your cobweb plot.
Run the function you wrote in problem 1 using the function
f
(
x
) =
rx
(1
Is this the question you were looking for? If so, place your order here to get started!