Learn how to use and combine different mathematical functions in APL
Function Name | Description |
---|---|
abs() | Calculates the absolute value of the input. |
acos() | Returns the angle whose cosine is the specified number (the inverse operation of cos()). |
asin() | Returns the angle whose sine is the specified number (the inverse operation of sin()). |
atan() | Returns the angle whose tangent is the specified number (the inverse operation of tan()). |
atan2() | Calculates the angle, in radians, between the positive x-axis and the ray from the origin to the point (y, x). |
cos() | Returns the cosine function. |
degrees() | Converts angle value in radians into value in degrees, using formula degrees = (180 / PI) * angle-in-radians. |
exp() | The base-e exponential function of x, which is e raised to the power x: e^x. |
exp2() | The base-2 exponential function of x, which is 2 raised to the power x: 2^x. |
gamma() | Computes gamma function. |
isinf() | Returns whether input is an infinite (positive or negative) value. |
isnan() | Returns whether input is Not-a-Number (NaN) value. |
log() | Returns the natural logarithm function. |
log10() | Returns the common (base-10) logarithm function. |
log2() | Returns the base-2 logarithm function. |
loggamma() | Computes log of absolute value of the gamma function. |
not() | Reverses the value of its bool argument. |
pi() | Returns the constant value of Pi (π). |
pow() | Returns a result of raising to power. |
radians() | Converts angle value in degrees into value in radians, using formula radians = (PI / 180) * angle-in-degrees. |
round() | Returns the rounded source to the specified precision. |
sign() | Sign of a numeric expression. |
sin() | Returns the sine function. |
sqrt() | Returns the square root function. |
tan() | Returns the tangent function. |
exp10() | The base-10 exponential function of x, which is 10 raised to the power x: 10^x. |
isint() | Returns whether input is an integer (positive or negative) value |
isfinite() | Returns whether input is a finite value (is neither infinite nor NaN). |
Name | Type | Required or Optional | Description |
---|---|---|---|
x | int, real or timespan | Required | The value to make absolute |
Name | Type | Required or Optional | Description |
---|---|---|---|
x | real | Required | A real number in range [-1,. 1] |
null
if x
< -1 or x
> 1Name | Type | Required or Optional | Description |
---|---|---|---|
x | real | Required | A real number in range [-1,. 1] |
Name | Type | Required or Optional | Description |
---|---|---|---|
a | real | Required | Angle in radians. |
Name | Type | Required or Optional | Description |
---|---|---|---|
x | real number | Required | Value of the exponent. |
Name | Type | Required or Optional | Description |
---|---|---|---|
x | real number | Required | Value of the exponent. |
Name | Type | Required or Optional | Description |
---|---|---|---|
x | real | Required | A real number > 0. |
Name | Type | Required or Optional | Description |
---|---|---|---|
x | real | Required | A real number > 0. |
Name | Type | Required or Optional | Description |
---|---|---|---|
x | real | Required | A real number > 0. |
Name | Type | Required or Optional | Description |
---|---|---|---|
Expr | bool | Required | A bool expression to be reversed. |
radians = (PI / 180 ) * angle_in_degrees
Name | Type | Required or Optional | Description |
---|---|---|---|
a | real | Required | Angle in degrees (a real number). |
Name | Type | Required or Optional | Description |
---|---|---|---|
x | real | Required | A real number. |
Name | Type | Required or Optional | Description |
---|---|---|---|
x | real | Required | A real number >= 0. |
Name | Type | Required or Optional | Description |
---|---|---|---|
x | real | Required | A real number. |
tan(x)
Name | Type | Required or Optional | Description |
---|---|---|---|
x | real | Required | A real number, value of the exponent. |