User`s guide

DIFFERENCES
In line 14, the first file has the variable radamg, while the second file has the
variable radang.
Example 1: FORTRAN File with Errors (EXAMP.ONE)
real function ASIND( x)
real x
c
c This FORTRAN callable function returns the ARCSINE
c of a specified value as an angle in degrees.
c
if (ABS( x) .lt. 1.0) go to 10
ASIND = x * 90.0
return
c
c Use trigonometric identity to calculate ARCSINE of X.
c Then convert radians to degrees.
c
100 radamg = ATAN( x / SQRT( 1.0-x**2))
ASIND = radang * 57.29577951
return
c
end
Example 2: FORTRAN File without Errors (EXAMP.TWO)
real function ASIND( x)
real x
c
c This FORTRAN callable function returns the ARCSINE
c of a specified value as an angle in degrees.
c
if (ABS( x) .lt. 1.0) go to 100
ASIND = x * 90.0
return
c
c Use trigonometric identity to calculate ARCSINE of X.
c Then convert radians to degrees.
c
100 radang = ATAN( x / SQRT( 1.0-x**2))
ASIND = radang * 57.29577951
return
c
end
Comparing the Example Files
See the chapter on the BINCOM utility in the RT–11 System Utilities Manual for an
example DIFFERENCES listing between two binary files. The following command
compares the two text files EXAMP.ONE and EXAMP.TWO and creates the file
EXAMP.DIF containing a listing of any differences:
.DIFFERENCES/OUTPUT:EXAMP EXAMP.ONE EXAMP.TWO
Since the files are different, RT–11 creates the differences file EXAMP.DIF and
displays the following message on your screen:
?SRCCOM-W-Files are different
RT–11 Command Descriptions 79