Tangent and arctangent
tan x tan[x]
atan x atan[x]
Where x is a numeric, returns
tanx, taken to be in radians.
Integer arguments are promoted to floating point. Null is returned if the argument is null or infinity.
{(sin x)%cos x}.atanx; that is, the value whose tangent is x.
q)tan 0 0.5 1 1.5707963 2 0w / tangent
0 0.5463025 1.557408 3.732054e+07 -2.18504 0n
q)atan 0.5 / arctangent
0.4636476
q)atan 42
1.546991