Alphabetical Index of FORTRAN Intrinsic Functions

(Partial list )




Name

Definition

Examples

abs(x) Absolute value of xExample 1 , 2 , 3
achar(i) ASCII Character corresponding to integer value iExample 1
acos(x) Returns the arccosine (inverse cosine) of x (x is real) Example 1
adjustl(string)Returns a character string "string" left justified Example 1
adjustr(string)Right justifies character string "string" Example 1
asin(x) Returns the arcsine (inverse sine) of x (x is real) Example 1
associated(P,T) Checks on the association status of a pointer Example 1
atan(x) Returns the arctan (inverse tangent) of x (x is real) Example 1
cos(x)Returns the cosine of x (x is not an integer)Example 1, 2
cshift(array,shift,dim)Performs a circular shift of array along dimension dim. Example 1, 2
dot_product(A,B)Returns the dot product of vectors A and B Example 1, 2, 3, 4
exp(x)Calculates e (2.7183...) to the x power (x is not an integer) Example 1, 2
huge(x)Returns the largest number that can be represented by a number of the same type and kind as x. Example 1
iachar(string)Returns the integer value associated with an individual character in the Ascii character set Examples
lbound(array,dim) Returns the lower bounds declared for array along dimension dim. Example 1
len(string)Length declared for character entity "string" Example 1, 2
len_trim(string)Returns the number of characters in "string" not including trailing blanks Example 1
log(x)Calculates the natural logarithm of x (x is not an integer and x>0) Example 1
log10(x)Calculates the base 10 log of x (x is not an integer and x>0) Example 1
matmul(a,b)Returns the matrix which is the result of the matrix multiplication between matrices A and B. Arguments must have one or two dimensions. Example 1
max(x1, x2,...)Returns the maximum of x1, x2,... (arguments must be of the same type) Example 1, 2, 3
maxloc(array,mask)Returns the location of the largest integer or real array element Example 1
maxval(array,dim,mask)Returns the maximum value of array along dimension dim Example 1
min(x1, x2,...) Returns the minimum of x1, x2,... (arguments must be of the same type) Example 1, 2
minloc(array,mask) Returns the location of the array element with the smallest value Example 1
minval(array,dim,mask) Returns the minimum value of array along dimension dim Example 1
mod(i,j) Produces the remainder of the division of i by j (modulo function) Example 1
nint(x) Returns the nearest integer to the real number x Example 1
random_number(harvest) Sets a random number from the normal distribution between zero and one. Example 1
scan(string,set,back) Returns the location of the first occurrence of character in "set" within "string." Returns zero if none found. Example 1
selected_int_kind(i) Delivers the integer specifying the KIND attribute of an integer variable that can contain numbers with at least "i" decimal digits Example 1
selected_real_kind(i,j) Delivers the integer specifying the KIND attribute of a real variable with decimal precision of at least i digits and a decimal exponent range of j Example 1, 2
sin(x)Returns the sine of x (x is not an integer)Example 1, 2, 3
sqrt(x) Returns the square root of x (x is not an integer and >0) Example 1, 2
sum(array,dim,mask) Returns the sum of all of the elements along dimension dim. Example 1, 2, 3
system_clock(count,

count_rate,count_max)

Subroutine which returns information about the clock of the host system. Example 1, 2
tan(x)Returns the tangent of x (x is not an integer)Example
tiny(x) Returns the smallest number that can be represented by a real of the same type. Example 1
ubound(array,dim) Returns the upper bounds declared for array along dimension dim. Example 1
verify(string,set,back) Returns the location of the first character in "string" that is not in "set" Example 1, 2

Back to the 201 homepage