sin, asin

Sine, Arcsine

sin

Sine

Syntax: sin x, sin[x]

Returns the sine of x, taken to be in radians. The result is between -1 and 1, or null if the argument is null or infinity.

q)sin 0.5
0.4794255
q)sin 1%0
0n


asin

Syntax: asin x, asin[x]

Returns the arcsine of x; that is, the value whose sine is x. The result is in radians and lies between $-\frac{\pi}{2}$ and $\frac{\pi}{2}$. (The range is approximate due to rounding errors).

Null is returned if the argument is not between -1 and 1.

q)asin 0.8
0.9272952