Skip to main content

Numeric Functions

This document provides a reference for all built-in numeric functions available in OpenDataDSL.

abs(data)

Category: Numeric

Description: Absolute value

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


acos(data)

Category: Numeric

Description: Returns the arc cosine of a value; the returned angle is in the range 0.0 through pi

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


asin(data)

Category: Numeric

Description: Returns the arc sine of a value; the returned angle is in the range -pi/2 through pi/2

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


atan(data)

Category: Numeric

Description: Returns the arc tangent of a value; the returned angle is in the range -pi/2 through pi/2

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


atan2(y, x)

Category: Numeric

Description: Returns the angle theta from the conversion of rectangular coordinates (x, y) to polar coordinates (r, theta)

Parameters:

  • y (Number, List, TimeSeries or Curve) - The y coordinate
  • x (Number) - The x coordinate

Returns: Number

Works with: curve timeseries scalar list


cbrt(data)

Category: Numeric

Description: Returns the cube root of a double value

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


cos(data)

Category: Numeric

Description: Returns the trigonometric cosine of an angle

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


cosh(data)

Category: Numeric

Description: Returns the hyperbolic cosine of a double value

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


exp(data)

Category: Numeric

Description: Returns Euler's number e raised to the power of a double value

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


log(data)

Category: Numeric

Description: Returns the natural logarithm (base e) of a double value

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


log10(data)

Category: Numeric

Description: Returns the base 10 logarithm of a double value

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


log1p(data)

Category: Numeric

Description: Returns the natural logarithm of the sum of the argument and 1

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


mod(data)

Category: Numeric

Description: Returns the floor modulus for the given x, y numbers

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


pow(data, power)

Category: Numeric

Description: Returns the value of the first argument raised to the power of the second argument

Parameters:

  • data (Number, List, TimeSeries or Curve) - The data to transform
  • power (Number) - The power to raise the input data to

Returns: Number

Works with: curve timeseries scalar list


sin(data)

Category: Numeric

Description: Returns the trigonometric sine of an angle

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


sinh(data)

Category: Numeric

Description: Returns the hyperbolic sine of a double value

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


sqrt(data)

Category: Numeric

Description: Returns the correctly rounded positive square root of a double value

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


tan(data)

Category: Numeric

Description: Returns the trigonometric tangent of an angle

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


tanh(data)

Category: Numeric

Description: Returns the hyperbolic tangent of a double value

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


toDegrees(data)

Category: Numeric

Description: Converts an angle measured in radians to an approximately equivalent angle measured in degrees

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list


toRadians(data)

Category: Numeric

Description: Converts an angle measured in degrees to an approximately equivalent angle measured in radians

Parameters:

  • data (Number, List, TimeSeries or Curve) - The input data to transform

Returns: Number

Works with: curve timeseries scalar list