2007年11月9日 星期五

Exponential Function

Do Project 7 of Chap. 3. (2nd ed. & 3rd ed.) or Project 4 (1st ed.)

Hint: You don't have to use nested loops.

Source code:














after running
x = 2
n = 1















n = 10
















n = 50















n = 100















由程式的計算結果證明,n越大其e^x越接近精確值e^2 = 7.389056099.....

沒有留言: