Scripting > Math Functions


Exponentiation Function

exponentiation(floating-point constant)

Derive a new time series or paired data set from the exponentiation of values in the current data set by constant, by:

T2 (i) = T1(i)constant

For time series data, values that are missing in the current time series remain missing in the new time series.

 

For paired data sets, use the setCurve method to first select the paired data curve(s).

 

See also: setCurve()

Parameters:

constant – a floating-point value representing the exponent.

Example: squaredDataSet = dataSet.exponentiation(2.)

Returns: A new HecMath object of the same type as the current object