ATAN macro
The ATAN
macro
is available only in Unica Campaign.
Syntax
ATAN(data [, units_keyword])
Parameters
data
The
numerical values to compute the arc tangent of. This can be a constant
value, a column, a cell range, or an expression evaluating to any
of the above. For the format definition of data
,
see the "Macro Function Parameters" section in the chapter in this
guide for your
product.
units_keyword
This optional keyword determines whether the input values and results are interpreted as degrees or radians. Select one of the following:
RADIAN
-
Performs the calculations in radians (default)
DEGREE
-
Performs the calculations in degrees
If this parameter is not
specified, the default is radians. (To convert from radians to degrees,
divide by PI
and multiply by 180.)
For more details on using keywords in Unica Campaign, see Format Specifications.
Description
ATAN
calculates
the arctangent of the values in the specified data range. The arctangent
is the angle whose tangent is the contents of each cell. ATAN
returns
one new column for each input column, each containing the arctangent
of numbers in the corresponding input column.
If the keyword RADIAN
is
used, ATAN
returns values in the range -π/2 to π/2.
If the keyword DEGREE
is used, ATAN
returns
values in the range -90 to 90.
Examples
TEMP = ATAN(1) or TEMP = ATAN(1, 0) or TEMP
= ATAN(1, RADIAN) Creates a new column named |
TEMP = ATAN(1, 1) or TEMP = ATAN(1,
DEGREE) Creates a new column named |
TEMP = ATAN(V1) Creates a new column named |
TEMP = ATAN(V1:V3, 1) Creates three new
columns named |
TEMP = ATAN(V1[10:20]) Creates a new column
named |
TEMP = ATAN(V1[1:5]:V2) Creates two new
columns named |
Related functions
Function | Description |
---|---|
ACOS |
Computes the arccosine of the contents of the specified data range |
ASIN |
Computes the arcsine of the contents of the specified data range |
ATAN |
Computes the arctangent of the contents of the specified data range |
TAN |
Computes the tangent of the contents of the specified data range |