Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what does ** mean in fortran? 1

Status
Not open for further replies.

byter101

Programmer
Jul 6, 2009
10
US
herro,

i have a line:

t1=2.0/(6316.0*zwtemp(ix,iy,iz)**(-1.55)+13609.0*zwtemp(ix,iy,iz)**(-1.86))

can anyone tell me what it does? specifically what the double asterisks are? (i'm assuming the single asterisk is a multiply)

thank yous
 
It's power.
This
Code:
do i = 1, 10
 write (*,*) '2**',i,' = ', 2**i
end do
end
results in
Code:
$ g95 power.f90 -o power

$ power
 2** 1  =  2
 2** 2  =  4
 2** 3  =  8
 2** 4  =  16
 2** 5  =  32
 2** 6  =  64
 2** 7  =  128
 2** 8  =  256
 2** 9  =  512
 2** 10  =  1024
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top