Scripting > Math Functions


Cosine Trigonometric Function

cos()

Derive a new time series or paired data set from the cosine of values of the current data set.  The resultant data set values are in radians.  For time series data, missing values are kept as missing. 

For paired data sets, use the setCurve function to first select the paired data curve (or all curves) to apply the function.  By default the function is applied to all paired data curves.

See also: setCurve()
Parameters: Takes no parameters
Example: newDataSet = dataSet.cos()
Returns: A HecMath object of the same type as the current object