pow(base: numeric, exponent: numeric) -> float64

Raises numeric base to numeric exponent and returns a float64. If either argument is null, the result is null. 0 raised to a negative exponent is undefined and yields null. A negative base with a non-integer exponent yields null because the real power is not generally defined.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col squared:pow(@.side, 2)

Raises each side length to the second power when computing area-like metrics from edge measurements.

make_col decay:pow(0.5, @.depth)

Applies a half-life style attenuation where each level deeper multiplies the signal by one half.