Skip to main content
The table summarizes the mathematical functions available in APL.
NameDescription
absCalculates the absolute value of the input.
acosReturns the angle whose cosine is the specified number (the inverse operation of cos()).
asinReturns the angle whose sine is the specified number (the inverse operation of sin()).
atanReturns the angle whose tangent is the specified number (the inverse operation of tan()).
atan2Calculates the angle, in radians, between the positive x-axis and the ray from the origin to the point (y, x).
cosReturns the cosine function.
cotReturns the cotangent function.
degreesConverts angle value in radians into value in degrees.
expThe base-e exponential function of x: e^x.
exp10The base-10 exponential function of x: 10^x.
exp2The base-2 exponential function of x: 2^x.
gammaComputes the gamma function.
isfiniteReturns whether input is a finite value (neither infinite nor NaN).
isinfReturns whether input is an infinite (positive or negative) value.
isintReturns whether input is an integer (positive or negative) value.
isnanReturns whether input is a Not a Number (NaN) value.
logReturns the natural logarithm function.
log10Returns the common (base-10) logarithm function.
log2Returns the base-2 logarithm function.
loggammaComputes log of absolute value of the gamma function.
max_ofReturns the largest of the provided values.
min_ofReturns the smallest of the provided values.
notReverses the value of its bool argument.
piReturns the constant value of Pi (π).
powReturns a result of raising to power.
radiansConverts angle value in degrees into value in radians.
randReturns pseudo-random numbers.
rangeReturns a dynamic array of evenly spaced values.
roundReturns the rounded source to the specified precision.
set_differenceReturns the difference between two arrays.
set_has_elementDetermines if a set contains a specific value.
set_intersectReturns the intersection of two arrays.
set_unionReturns the union of two arrays.
signSign of a numeric expression.
sinReturns the sine function.
sqrtReturns the square root function.
tanReturns the tangent function.