datgen.f
来自「网络带宽测试工具」· F 代码 · 共 21 行
F
21 行
Subroutine datgen( a, n )! ----------------------------------------------------------------------! --- Routine 'datgen' generates the Real part of the test data for! the FFT: One complete cosine cycle in the Real part of the data.! ---------------------------------------------------------------------- Use numerics Implicit None Integer :: n Real(l_) :: a(0:n-1) Integer :: i Real(l_) :: fac! ---------------------------------------------------------------------- fac = 8.0_l_*Atan( 1.0_l_ )/Real( n, l_ ) Do i = 0, n - 1 a(i) = Cos( i*fac ) End Do! ---------------------------------------------------------------------- End Subroutine datgen
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?