1
* 15/05/85 508092014 MEMBER NAME GMLINE (S) FORTRAN
2
************************************************************************
3
* ---------------------------------------
4
SUBROUTINE GMLINE(X1,Y1,X2,Y2,A,B,IERR)
5
* ---------------------------------------
8
* Calculate a gradient and a intercept of line
9
* when two points are given.
12
* X1,Y1 : coordinate of one point.
13
* X2,Y2 : coordinate of another point.
16
* A : a gradient of the line
17
* B : a intercept of the line
18
* IERR = 0 : Normal end
19
* = 1 : No solution is found.
21
************************************************************************
23
REAL*8 DX1,DY1,DX2,DY2
36
DA=(DY1-DY2)/(DX1-DX2)