py-linux / cobweb

A cobweb plotter done in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cobweb plotter

This is a simple code in Python 3 using the matplotlib libary to plot a cobweb graph. More information about cobweb plot can be found here. Also, a online cobweb plotter can be found here, where it was used as a inspiration to do this code.

About

This code plots the functions y = x in red, in the interval [0, 1.2] x [0, 1.2] and the graph of

f(x) = a * x * (1 - x)

Then, applys the map to the initial point given.

Examples

Plot using a = 2, and x_0 as 0.1

Cobweb plot 1

Plot using a = 4, and x_0 as 0.2

Cobweb plot 2

About

A cobweb plotter done in Python

License:MIT License


Languages

Language:Python 100.0%