' Collection of code snippets by Arne Vajhøj 
' (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
Function myarcsin(v As Double) As Double
   Dim xn As Double
   Dim xnplus1 As Double
   xn = 0
   For i = 1 To 25
       xnplus1 = xn - (Sin(xn) - v) / Cos(xn)
       xn = xnplus1
   Next i
   arcsin = xn
End Function

Function msarcsin(v As Double)
   msarcsin = Atn(v / Sqr(1 - v * v))
End Function
