cwjcwjcwj
Full Member level 5
Pls help on Fortran
do i=1,33
numb(i)=0.
cum_numb(i)=0.
end do
numb(1)=1.
do i=2,n+1
numb(i)=numb(i-1)*((n-i+2)/(i-1))
end do
I have a code from fortran as above. Just wondering, what is numb(1)=1. means?I mean what is the '.' in fortran mean?Is it meaningless?If I convert to Matlab,is it as following numb(1)=1;?Thanks
do i=1,33
numb(i)=0.
cum_numb(i)=0.
end do
numb(1)=1.
do i=2,n+1
numb(i)=numb(i-1)*((n-i+2)/(i-1))
end do
I have a code from fortran as above. Just wondering, what is numb(1)=1. means?I mean what is the '.' in fortran mean?Is it meaningless?If I convert to Matlab,is it as following numb(1)=1;?Thanks