This page explains how to use the series_atan function in APL.
series_atan
function computes the arc tangent (inverse tangent) for each element in a numeric array (also known as a series). You use it to transform a dynamic array of numbers into their corresponding arc tangent values, expressed in radians. This is useful when you work with time series or array data and want to normalize, analyze, or transform it using trigonometric operations.
You often use series_atan
in scenarios where you want to transform numeric measurements into angular values for further statistical analysis, pattern recognition, or anomaly detection.
Splunk SPL users
eval atan(x)
to calculate the arc tangent of a scalar value, but SPL doesn’t provide a built-in function for applying atan
across arrays or time series directly. In APL, series_atan
applies the operation element-wise to arrays, making it easier to work with dynamic and time series data.ANSI SQL users
ATAN(x)
for scalar values. To work with arrays, you typically need to unnest the array, apply ATAN
to each element, and then aggregate the results back. APL simplifies this with series_atan
, which applies the arc tangent function element-wise to the entire array.Parameter | Type | Description |
---|---|---|
array | dynamic | A dynamic array of numeric values. |
durations | atan_durations |
---|---|
[10, 200, 5000] | [1.4711, 1.5658, 1.5706] |