Trigonometric Functions
Trigonometric functions take numeric arguments and produce numeric results.
-
ARCOS(X)
ACOS(X)
Takes the arccosine, in radians, ofX
. Results in system-missing ifX
is not between -1 and 1 inclusive. This function is a PSPP extension. -
ARSIN(X)
ASIN(X)
Takes the arcsine, in radians, ofX
. Results in system-missing ifX
is not between -1 and 1 inclusive. -
ARTAN(X)
ATAN(X)
Takes the arctangent, in radians, ofX
. -
COS(ANGLE)
Takes the cosine ofANGLE
which should be in radians. -
SIN(ANGLE)
Takes the sine ofANGLE
which should be in radians. -
TAN(ANGLE)
Takes the tangent ofANGLE
which should be in radians. Results in system-missing at values of ANGLE that are too close to odd multiples of π/2.