# File: chaos.py # A simple program illustrating chaotic behavior # # ** this does no error checking ** # # Matt Bishop, ECS 10, Spring 2014 # # announce what the program does print("This program illustrates a chaotic function") # ask, and convert it to a float x = float(input("Enter a number between 0 and 1: ")) # # now apply the chaotic function 100 times # for i in range(100): x = 3.9 * x * (1 - x) print(x)