Python Program Chaos.py
cchorpen on Apr 3rd 2008
#File: chaos.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: “)
for i in range(10):
x=3.9 * x * (1-x)
print x
main()
#File: chaos.py2
#A simple program illustrating chaotic behavior
def main():
print “This program illustrates a chaotic function”
x=input (”Enter a number”)
import chaos
Filed in Uncategorized |