Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Python The Duffing map is defined as follows: x n + 1 = y n , y n + 1 = - b *

Use Python
The Duffing map is defined as follows:
xn+1=yn,yn+1=-b*xn+a*yn-yn3,
where a and b are parameters. For this exercise we shall fix a=2.75 and b=0.2
throughout.
a) Set up a function, which given xn,yn,a and b returns xn+1 and yn+1 according to the Duffing map.
b) Starting from the initial condition x0=0.5 and y0=0.5, plot the first 400 iterations of the Duffing map. You only need to plot the xn values.
c) Find the fixed points of the Duffing map. You do not have to do this numerically.
d) Represent the output of the first 3000 iterations of the map on the x-y plane, so
you can see the strange attractor. Remove transient effects by plotting only after 100 iterations.
e) Let's look at the fractal-like behaviour of the strange attractor. Run your map for many iterations (say up to 108, but it will depend on your computer). To do this, I recommend setting up a vector to hold all your iteration outputs, and then plotting at the end. This will be much faster than plotting on each time through the loop. Zoom in on a subset of the strange attractor, by plotting only the points that fall in the ranges x in [0.85,1.05] and yin[1.6,1.75]. If you run in interactive mode you will be able to zoom in. Describe the strange attractor. Is it self-similar?

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PostgreSQL Up And Running A Practical Guide To The Advanced Open Source Database

Authors: Regina Obe, Leo Hsu

3rd Edition

1491963417, 978-1491963418

More Books

Students also viewed these Databases questions