# File: chaos-mod-6.py # A simple program illustrating chaotic behavior def main(): print "This program illustrates a chaotic function" x = input("Enter a number between 0 and 1:") y = input("Enter another number between 0 and 1:") print "input", x, y #print "input", x, "\t", y print "-------------------------------------" for i in range(10): x = 3.9 * x * (1-x) y = 3.9 * x * (1-x) print x, y #print "\t", x, "\t", y main()