A command for Oblivion Script Extender
Syntax:
acos [float]
Returns the arccosine of a number (i.e. the angle whose cosine this is)
set theta to acos ( r / x )