TANH macro
The TANH macro is available only in Unica Campaign.
Syntax
TANH(data [, units_keyword])
Parameters
data
The
numerical values to compute the hyperbolic 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
TANH
calculates
the hyperbolic tangent of the values in the specified data range.
It returns one new column for each input column, each containing the
hyperbolic tangent of numbers in the corresponding input column. The
hyperbolic tangent of a number is calculated as follows:TANH
returns the maximum 32-bit floating point value.Examples
TEMP = TANH(PI) or TEMP = TANH(PI,
0) or TEMP = TANH(PI, RADIAN)
Creates a new column named |
TEMP = TANH(V1) Creates
a new column named |
TEMP = TANH(V1:V3, 1) or TEMP = TANH(V1:V3,
DEGREE) Creates three new columns
named |
TEMP = TANH(V1[1:5]:V2)
Creates two new columns named |
Related functions
Function | Description |
---|---|
ATAN |
Computes the arctangent of the contents of the specified data range |
COSH |
Computes the hyperbolic cosine of the contents of the specified data range |
COT |
Computes the cotangent of the contents of the specified data range |
SINH |
Computes the hyperbolic sine of the contents of the specified data range |
TAN |
Computes the tangent of the contents of the specified data range |