Computes arctan(x). The algorithm is described in Can. J. Math. Vol. 47 (2), 1995 pp. 262-273 but was certainly known in the early 1960s. The originator at that time is unknown. On entry the accumulator is set to x and s is set to the number of bits in computed in the result. On exit from the subroutine the accumulator is set to the floating point value of arctan(x). p1=100 10*0.3 test argument 70s32 number of digits 58p10 subroutine to computer arctan 19f2 save answer 59f29 print result 59f15 calculate cosine 8f2 save and retrieve result 59f14 calculate sine 15f2 calculate tangent 59f29 print to confirm result 101f0 p1=200 19f4(10 4 current x 9f6 6 current bit sum 79sp99 set number of digits 70s0 initial bit position 24f4(98 <--- put x in K 26f1 | M = 1.0 17f4 | M = 1 - x**2 19f2 | 2 is work space 26f2 | M = 2.0 14f4 | M = 2x 15f2 | M = 2x/(1 - x**2) 19f4 | store as new x | 54fp97--- | skip bit if >=0 110f1430 | | 100000... 7s1 | | shift right s+1 places 29f6 | | OR onto bit sum 19f6 | | new bit sum 72s1(97 | | increment s 76s0(99 <- | skip after number of digits 50fp98------ 10f6 get bit sum 96f0 float and multiply 2 19f2 110f1534 pi/2 14f2 60f0 s100