x = 0.
bin = 0.1
Do i=1,30
y = x
x = x+bin
Enddo
x = 0.
bin = 0.1
Do i=1,30
y = dishu**x
x = x+bin
Enddo
x = 0.
bin = 0.1
Do i=1,30
y = dishu**x
x = x+y
Enddo
li913 发表于 2015-5-31 20:22
[mw_shl_code=fortran,true]x = 0.
bin = 0.1
fcode 发表于 2015-6-1 09:37
那你需要自己设计一个合适的函数。
xmin = 1.d-5
xmax = 4.0d0
nbin = 40
xbin = log(xmax/xmin)/nbin
Do i=1,nbin
x = xmin*exp(i*xbin)
y = x
Enddo
欢迎光临 Fortran Coder (http://bbs.fcode.cn/) | Powered by Discuz! X3.2 |