...sin(x) by function call =', sin(x) print *, 'sin(x) by calculation =', sin_cal(x) print *, 'cos(x) by function call ='...0.3349883 cos(x) by function call = -0.9422223 cos(x) by calculation = -0.9422223 x = -2 sin(x) by function call = -0.9092974 sin...
分類:電腦與網際網路 > 程式設計 2009年11月02日
/* this is for compound interest calculation . ask if you need linear interest or mortgage calculation . also, this...補充: amount * ( pow( 1.f + interest, float(year) ) ) ->final amount calculation this is from this equation: A = P( 1 + ( r...
分類:電腦與網際網路 > 程式設計 2007年05月01日
...sin(x) by function call =', sin(x) print *, 'sin(x) by calculation =', sum go to 1 end 執行結果: x = .07 sin(x) by...sin(x) by function call =', sin(x) print *, 'sin(x) by calculation =', sum exit end if end do end do end 這題用 ...
分類:電腦與網際網路 > 程式設計 2009年11月26日
...題目的意思是要你用廻圈來計算 e 值。例如: 1st calculation : 1 + 1/1! 2nd calculation : 1st + 1/2! 3rd calculation : 2nd...0000001) { System.out.println("Last calculation "); System.out.println("n = " + count...
分類:電腦與網際網路 > 程式設計 2007年04月03日
...each of the values 1 to 10,50,and 100. Your program should repeat the calculation for new values of x until the user says she or he is through...
分類:電腦與網際網路 > 程式設計 2006年06月03日
...(term) < 1e-7) exit n = n+2. end do write (*, *) 'cosh(x) by calculation = ', sum write (*, *) 'cosh(x) by function call =', cosh(x) go to 1 end執行...
分類:電腦與網際網路 > 程式設計 2010年11月06日
...1d-12) go to 1 write (*, "(/'x =', f5.0)") x write (*, *) 'e^x by calculation =', sum write (*, *) 'e^x by function call =', exp(x) end do end 執行結果...
分類:電腦與網際網路 > 程式設計 2010年06月16日
...sin_cal write(*,*) 'sin(x) by fuction call =', sin_fun write(*,*) 'sin(x) by calculation =', sin_cal write(*,*) 'Difference =', dif end 3. 程式 1 與...
分類:電腦與網際網路 > 程式設計 2009年04月11日
應該是..SPF(shortest-path first calculations )吧 其他三個特性都不是Link-state routing protocol的特性
分類:電腦與網際網路 > 程式設計 2008年03月28日
...x x = 2.0 print *, 'cos(x) by function call =', cos(x) print *, 'cos(x) by calculation =', cos_cal(x) end ! real function cos_cal(x) real x, term, sum integer n n = 0...
分類:電腦與網際網路 > 程式設計 2011年11月08日