What are the differences between this FOTRAN resevered words:

a) COMPLEX and CMPLX

b) INTEGER and INT

c) DOUBLE PRECISION and DBLE

The first of each of the terms are used for data declarations. The second of each are intrinsic functions and are used to create (or convert) a variable into a specific data type.

a) COMPLEX and CMPLX:

COMPLEX is a reserved word in Fortran used for declaring complex variables. Complex variables store two floating-point values: a real part and an imaginary part.

On the other hand, CMPLX is not a reserved word in Fortran. It is an intrinsic function that creates a complex variable from two real values. The CMPLX function takes two arguments - the real part and the imaginary part - and returns a complex value.

So, the difference between COMPLEX and CMPLX is that COMPLEX is used for declaring complex variables, while CMPLX is a function used to create complex variables.

b) INTEGER and INT:

INTEGER is a reserved word in Fortran used for declaring integer variables. Integer variables can store whole number values.

INT, on the other hand, is not a reserved word in Fortran. It is an intrinsic function used for converting a real or complex value to the nearest integer value. The INT function takes one argument - a real or complex value - and returns the nearest integer representation of that value.

So, the difference between INTEGER and INT is that INTEGER is used for declaring integer variables, while INT is a function used for converting real or complex values to integers.

c) DOUBLE PRECISION and DBLE:

DOUBLE PRECISION is a reserved word in Fortran used for declaring variables with double precision floating-point values. Double precision variables provide higher accuracy and precision compared to single precision variables.

DBLE, on the other hand, is not a reserved word in Fortran. It is an intrinsic function used to convert a real or complex value to double precision. The DBLE function takes one argument - a real or complex value - and returns the double precision representation of that value.

So, the difference between DOUBLE PRECISION and DBLE is that DOUBLE PRECISION is used for declaring double precision variables, while DBLE is a function used for converting real or complex values to double precision.