Supported Functions

Supported Functions

Supported functions

The next are the current supported set:

  1. where(bool, number1, number2): number – number1 if the bool condition is true, number2 otherwise.
  2. {sin,cos,tan}(float|complex): float|complex – trigonometric sine, cosine or tangent.
  3. arcsin,arccos,arctan}(float|complex): float|complex – trigonometric inverse sine, cosine or tangent.
  4. arctan2(float1, float2): float – trigonometric inverse tangent of float1/float2.
  5. {sinh,cosh,tanh}(float|complex): float|complex – hyperbolic sine, cosine or tangent.
  6. {arcsinh,arccosh,arctanh}(float|complex): float|complex – hyperbolic inverse sine, cosine or tangent.
  7. {log,log10,log1p}(float|complex): float|complex – natural, base-10 and log(1+x) logarithms.
  8. {exp,expm1}(float|complex): float|complex – exponential and exponential minus one.
  9. sqrt(float|complex): float|complex – square root.
  10. abs(float|complex): float|complex – absolute value.
  11. conj(complex): complex – conjugate value.
  12. {real,imag}(complex): float – real or imaginary part of complex.
  13. complex(float, float): complex – complex from real and imaginary parts.
  14. contains(np.str, np.str): bool – returns True for every string in op1 that contains op2 .



    • Related Articles

    • Supported Operators

      Supported operators NumExpr supports the set of operators listed below: Bitwise operators (and, or, not, xor): &, |, ~, ^ Comparison operators: <, <=, ==, !=, >=, > Unary arithmetic operators: - Binary arithmetic operators: +, -, *, /, **, %, <<, >>
    • Examples (Functions)

      Here, is the list of all the functions built in StellarAi Sr. No. Computation Function Syntax Description Example 1 Get count of expression @countExpr(parameter_name>3000) This function counts the data points in the column for the given condition. ...
    • Adding Computations to Analysis Group

      Adding Computations to Analysis Group: Computations are essentially simple / complex mathematical expressions, logical operators, trigonometric functions whose results are shown in an information tile. Computations involve creating mathematical ...
    • Adding 'Computed Parameters' to data

      Adding 'Computed Parameters' to data: A computed parameter is a StellarAi-generated data column, derived by applying mathematical expressions, logical operators, or trigonometric functions on data columns from the test files. Example: Calculation of ...
    • Computed Function (Examples)

      Here, is the list of all the computed functions in StellarAi Sr. No. Computation Function Syntax Description Example 1 diff idiff = @diff( `parameter_name` ) This function adds a new column to the data, storing the difference between consecutive data ...