SQRT macro

The SQRT macro is available only in Unica Campaign.

Syntax

SQRT(data)

Parameters

data

The numerical values to compute the square root 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.

Description

SQRT calculates the square root of the values in the specified data range. It returns one new column for each input column, each containing the positive square root of numbers in the corresponding input column.

Note: If a value in the defined data range is negative, a ??? is returned for that cell.

Examples

TEMP = SQRT(2)

Creates a new column named TEMP containing the value 1.41.

TEMP = SQRT(V1)

Creates a new column named TEMP, where each value is the square root of the contents of column V1.

TEMP = SQRT(V1:V3)

Creates three new columns named TEMP, VX, and VY. The values in the TEMP column are the square roots of the contents of column V1, the values of the VX column are the square roots of the contents of column V2, and the values of the VY column are the square roots of the contents of column V3.

TEMP = SQRT(V1[10:20])

Creates a new column named TEMP, where the first 11 cells contain the square roots of the values in rows 10-20 of column V1. The other cells in TEMP are empty.

TEMP = SQRT(V1[10:50]:V2)

Creates two new columns named TEMP and VX, each with values in rows 1-41 (the other cells are empty). The values in column TEMP are the square roots of the values in rows 10-50 of column V1, and the values in column VX are the square roots of the values in rows 10-50 of column V2.

Related functions

Function Description
DIV Divides one specified data range by another
MULT Multiplies the contents of two data ranges
POW Computes a base value raised to the specified exponential power(s)