Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Fortran code question: what does numb(1)=1. mean ?

Status
Not open for further replies.

cwjcwjcwj

Full Member level 5
Joined
Nov 8, 2004
Messages
273
Helped
17
Reputation
34
Reaction score
12
Trophy points
1,298
Activity points
1,714
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
 

Re: Pls help on Fortran

0. , 1. in the expressions would mean real number representation.
num(i) = 1. <=> num(i) = 1.0
It means the array num() contains real numbers. In case o integers you would see:
numi(i) = 0
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top