Posted: November 24th, 2014
python and mathematics
Math 382 Homework 7 [corrected]
Total 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
PLACE THIS ORDER OR A SIMILAR ORDER WITH US TODAY AND GET AN AMAZING DISCOUNT 🙂
Place an order in 3 easy steps. Takes less than 5 mins.