Google
 

Trailing-Edge - PDP-10 Archives - -
There are no other files named in the archive.
*CALCULATES THE ROOTS OF A 2ND DEGREE EQUATION
*C YOU WILL BE ASKED TO ENTER THE VALUES OF
*C A,B AND C WHERE
*C
*C    2
*C A X  +B X   +   C  =   0
*C
*C
*C ENTER THE VALUE OF A
*R
A=%
*C ENTER THE VALUE OF B
*R
B=%
*C ENTER THE VALUE OF C
*R
C=%
*C THE ROOTS ARE:
X=(-B+SQRT(B*B-4.*A*C))/2.*A
Y=(-B-SQRT(B*B-4.*A*C))/2.*A
*C
*C AS YOU CAN SEE BECAUSE
A*X*X+B*X+C
A*Y*Y+B*Y+C