




Fortran Programming Language









question about logarithm in fortran
hi every body i have 2 questions 1) what is the benefit "allocate array " comparative to ordinary array ? 2) in program i need to compute logarithm (log(x)) . but Intrinsic function in fortran gives natural logarithm of the argument (Ln(x)) . what is the best way to find log ? best ,nakisa
"nakisa" <nakisa.noor @gmail.com> wrote in message news:1179682764.954998.169060@36g2000prm.googlegroups.com... > 1) what is the benefit "allocate array " comparative to > ordinary array ?
An allocated array has the advantage that it is 'dynamic'. Thus, it's size can be determined and used at run time. An 'ordinary' array (I assume you mean with fixed bounds) has a size that is fixed at compile time. Thus, if you need different bounds, the program has to be recompiled. > 2) in program i need to compute logarithm (log(x)) . > but Intrinsic function in fortran gives natural logarithm of the > argument (Ln(x)) . what is the best way to find > log ?
log10 (MR&C, p. 163). Regards, Mike Metcalf
thanks Mike of your help best,nakisa





