# File: assignmnet 1.py
# name: Jiaxin Lin
# MacID: linj33
# student number: 1311752
# Date: 2013/01/14


print "This program illustrates chaotic function"
x=input("Ener a number greater than 1: ")

for i in range(1,x+1):
    x=(1.0+1.0/i)**i
    print "answer=",x




#   Design Question
#1. It gives a blank answer because the input is not in the range
#2. Yes, because as the value of the input increase, the result is
#   approaching to e



#  Test plan
# This program illustrates chaotic function
# Ener a number greater than 1: 5
# answer= 2.0
# answer= 2.25
# answer= 2.37037037037
# answer= 2.44140625
# answer= 2.48832

#  With the input 5, the expected outputs
# are 2.0, 2.25, 2.37037037037, 2.44140625 and 2.48832. after texting the input 5
# in python, it gave the exact same ouputs as above.
# which means the program works well. 
