Intel fortran-80 manual B.2 Notes On Intrinsic Functions

Models: fortran-80

1 130
Download 130 pages 742 b
Page 105
Image 105
B.2 Notes On Intrinsic Functions

FORTRAN-SO

Intrinsic Functions

B.2 Notes On Intrinsic Functions

I.For an integer argument, 'int(a) = a.' For a real argument, two possibilities exist. If lal < I, int(a) = 0; if lal ~ I, 'int(a)' is the integer whose magnitude is the largest Integer that does not exceed the magnitude of 'a' and whose sign is the same as the sign of 'a.' For example,

int(-12.8) = -12

For an argument of type real, 'IFIX(a)' is the same as 'INT(a).'

2.For a real argument, 'REAL(a)' is 'a.' For an integer argument, 'REAL(a)' is as much precision of the significant part of 'a' as a real datum can contain.

For a real argument, 'FLOAT(a)' is the same as 'REAL(a).'

3.ICHAR provides a way to convert from characters to integers, based on the position of the character in the processor collating sequence (Appendix E). The first character in the collating sequence corresponds to position 0 and the last to position 'n-I,' where 'n' is the number of characters in the collating sequence.

The value of ICHAR(a) is an integer in the range 0 :5 ICHAR(a) :5 n-I, where 'a' is an argument of type character and length one. The value of 'a' must be a character capable of representation in the processor.

4.The result for MOD and AMOD is undefined when the value of the second argument is zero.

5.If the value of the first argument of ISIGN or SIGN is zero, the result is zero (which is neither positive nor negative).

6.The absolute value of the argument of SIN, COS, and TAN is not restricted to be less than 2*PI.

7.The absolute value of the argument of ASIN must be :5 result is -PII2 :5result :5 PII2.

8.The absolute value of the argument of ACOS must be :5 result is 0 :5 result :5 PI.

1.The range of the

I. The range of the

9.The range of the result for ATAN is -PII2 :5result :5 PII2. If the value of 'aI' is positive, the result is positive, and vice-versa. If the value of 'aI' is zero, the result is zero if 'a2' is positive, and 'PI' if 'a2' is negative. If 'a2' is zero, the ab- solute value of the result is PII2. Both arguments cannot be zero.

The range of the result for ATAN2 is -PI :5result :5 PI.

B-3

Page 105
Image 105
Intel fortran-80 manual B.2 Notes On Intrinsic Functions