# Category : Miscellaneous Language Source Code

Archive : FORTRN77.ZIP

Filename : CXSQRT.FOR

C

C SUBROUTINE CXSQRT FINDS THE SQUARE ROOT OF A COMPLEX NUMBER.

C

DIMENSION A(2), B(2)

D = A(2)

C = SQRT(A(1)*A(1) + A(2)*A(2))

B(2) = SQRT(ABS(.5*(-A(1) + C)))

B(1) = SQRT(ABS(.5*(A(1) + C)))

IF (D.LT.0.0) B(2)=-B(2)

RETURN

END

Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/