Intrinsic Function or Library Function

An intrinsic function is a built-in function that returns a single value.
Prewritten programs that are built-in the computer and available to be used to compute a single value. Intrinsic functions and math subroutines convert values from one data type to another, perform data manipulation, and also perform basic mathematical functions, such as calculating sines, cosines and square roots of numbers. An intrinsic function is invoked when the function name and any argument appear in an expression.
Example: The statement
root = SQRT(value1 + value2)
invokes the function SQRT, which computes the square root of value1
+value2. The resulting square root is then assigned to the variable
root.
Each of the intrinsic functions has a generic name, one or more specific names, or both generic and specific names. A generic name can be used with any of the valid data types for the function. A specific name can be used with only the specified data type.
Intrinsic Procedures
Name Description
ABS (A) Absolute value.
ACHAR (I) Character in position I of ASCII collating sequence.
ACOS (X) Arc cosine (inverse cosine) function.
ADJUSTL (STRING) Adjust left, removing leading blanks and inserting trailing blanks.
ADJUSTR (STRING) Adjust right, removing trailing blanks and inserting leading blanks.
AIMAG (Z) Imaginary part of complex number.
AINT (A[,KIND]) Truncate to a whole number.
ALL (MASK [,DIM]) True if all elements are true.
ALLOCATED (ARRAY) True if the array is allocated.
ANINT (A,[,KIND]) Nearest whole number.
ANY (MASK [,DIM]) True if any element is true.
ASIN (X) Arcsine(inverse sine) function.
ASSOCIATED (POINTER [,TARGET]) True if pointer is associated with target.
ATAN (X) Arctangent (inverse tangent) function.
ATAN2 (Y,X) Argument of complex number (X, Y).
BIT_SIZE (1) Maximum number of bits that may be held in an integer.
BTEST (I, POS) True if bit POS of integer I has value 1.
CEILING (A) Least integer greater than or equal to its argument.
CHAR (I [,KIND]) Character in position I of the processor collating sequence.
CMPLX (X[,Y] [,KIND]) Convert to COMPLEX type.
CONJG (Z) Conjugate of a complex number.
COS (X) Cosine function.
COSH(X)
COUNT (MASK [,DIM]) Number of true elements.
CSHIFT (ARRAY, SHIFT, [DIM]) Perform circular shift.
CALL DATE_AND_TIME (DATE] [,TIME] {,ZONE] [,VALUES]) Real-time clock reading date and time.
DBLE (A) Convert to double precision real.
DIGITS (X) Number of significant digits in the model for X.
DIM (X,Y) Max (X-Y,0).
DOT_PRODUCT (VECTOR_A, VECTOR_B) Dotproduct.
DPROD (X, Y) Double precision real product of two default real scalars.
EOSHIFT (ARRAY, SHIFT [,BOUNDARY] [,DIM]) Perform end-off shift.
EPSILON (X) Number that is almost negligible compared with one in the model for numbers like X.
EXP (X) Exponential function.
EXPONENT (X) Exponent part of the model for X.
FLOOR (A) Greatest integer less than or equal to its argument.
FRACTION (X) Fractional part of the model for X.
HUGE (X) Largest number in the model for numbers like X.
LACHAR (C) Position of character C in ASCII collating sequence.
LAND (I, J) Logical AND on the bits.
IBCLR (I, POS) Clear bit POS to zero.
IBITS (I, POS, LEN) Extract a sequence of bits.
IBSET (I, POS) Set bit POS to one.
OCJAR (C) Position of character C in the processor collating sequence.
IEOR (I, J) Exclusive OR on the bits.
INDEX (STRING, SUBSTRING [BACK]) Starting position of SUBSTRING within STRING.
INT (A [,KIND]) Convert to integer type.
IOR (I, J) Inclusive OR on the bits.
ISHFT (I, SHIFT) Logical shift on the bits.
ISHFTC (I, SHIFT [,SIZE]) Logical circular shift on a set of bits on the right.
KIND (X) Kind type parameter value.
LBOUND (ARRAY [,DIM]) Array lower bounds.
LEN (STRING) Character length.
LEN_TRIM (STRING) Length of STRING without trailing blanks.
LGE (STRING_A, STRING_B) True if STRING_A equals or follows STRING_B in ASCII collating sequence.
LGT (STRING_A, STRING_B) True if STRING_A follows STRING_B in ASCII collating sequence.
LLE (STRING_A, STRING_B) True if STRING_A equals or precedes STRING_B in ASCII collating sequence.
LLT (STRING_A, STRING_B) True if STRING_A precedes STRING_B in ASCII collating sequence.
LOG (X) Natural (base e logarithm function.
LOGICAL (L,[,KIND]) Convert between kinds of logicals.
LOG10 (X) Common (base 10) logarithm function.
MATMUL (MATRIX_A, MATRIX_B) Matrix multiplication.
MAX (A1,A2[,A3…]) Maximum value.
MAXEXPONENT (X) Maximum exponent in the model for numbers like X.
MAXLOC (ARRAY [,MASK]) Location of maximum array element.
MAXVAL (ARRAY [,DIM] [,MASK]) Value of maximum array element.
MERGE (TSOURCE, FSOURCE, MASK) TSOURCE when MASK is true and FSOURCE otherwise.
MIN (A1,A2 [,A3,…]) Minimum value.
MINEXPONENT (X) Minimum exponent in the model for numbers like X.
MINLOC (ARRAY [,MASK]) Location of minimum array element.
MINVAL (ARRAY [,DIM] [,MASK]) Value of minimum array element.
MOD (A,P) Remainder modulo P, that is A-INT(A/P)*P.
MODULO (A,P) A modulo P.
CALL MVBITS (FROM, FROMPOS, LEN, TO, POS) Copy bits.
NEAREST (X, S) Nearest different machine number in the direction given by the sign of S.
NINT (A [,KIND]) Nearest integer.
NOT (I) Logical complement of the bits
PACK (ARRAY, MASK [VECTOR]) Pack elements corresponding to true elements of MASK into rank-one result.
PRECISION (X) Decimal precision in the model for X.
PRESENT (A) True if optional argument is present.
PRODUCT (ARRAY [,DIM] [,MASK]) Product of array elements.
RADIX (X) Base of the model for numbers like X.
CALL RANDOM_NUMBER (HARVEST) Random numbers in range 0 -< x <1.
CALL RANDOM_SEED ([SIZE][,PUT][,GET]) Initialize or restart random number generator.
RANGE (X) Decimal exponent range in the model for X.
REAL (A [,KIND]) Convert to real type.
REPEAT (STRING, NCOPIES) Concatenates NCOPIES of STRING.
RESHAPE (SOURCE, SHAPE [,PAD] [,ORDER]) Reshape SOURCE to shape SHAPE.
RESPACING (X) Reciprocal of the relative spacing of model numbers near X.
SCALE (X, I) Xx b1, where b=RADIX(X).
SCAN (STRING, SET [,BACK]) Index of left-most (right-most if BACK is true) character of STRING that belongs to SET; zero if none belong.
SELECTED_INT_KIND (R) Kind of type parameter for specified exponent range.
SELECTED_REAL_KIND ([P] [,R]) Kind of type parameter for specified precision and exponent range.
SET_EXPONENT (X, I) Model number whose sign and fractional part are those of X and whose exponent part is I.
SHAPE (SOURCE) Array (or scalar) shape.
SIGN (A, B) Absolute value of A times sign of B.
SIN (X) Sine function.
SINH (X) Hyperbolic sine function.
SIZE (ARRAY [,DIM]) Array size.
SPACINE (X) Absolute spacing of model numbers near X.
SPREAD (SOURCE, DIM, NCOPIES) NCOPIES copies of SOURCE forming an array of rank one greater.
SQRT (X) Square root function.
SUM (ARRAY, [,DIM] [,MASK]) Sum of array elements.
CALL SYSTEM_CLOCK ([COUNT] [,COUNT_RATE] [,COUNT_MAX]) Integer data from real-time clock.
TAN (X) Tangent function.
TANH (X) Hyperbolic tangent function.
TINY (X) Smallest positive number in the model for numbers like X.
TRANSFER (SOURCE, MOLD [,SIZE]) Same physical representation as SOURCE, but type of MOLD.
TRANSPOSE (MATRIX) Matrix transpose.
TRIM (STRING) Remove trailing blanks from a single string.
UBOUND (ARRAY [,DIM]) Array upper bounds.
UNPACK (VECTOR, MASK, FIELD) Unpack elements of VECTOR corresponding to true elements of MASK.
VERIFY (STRING, SET [,BACK]) Zero if all characters of STRING belong to SET or index of left-most (right-most if BACK true) that does not.
Scroll to Top