Skip to content

mul

Input Stack:
ts2: TimeSeriesExpr
ts1: TimeSeriesExpr
Output Stack:
(ts1 * ts2): TimeSeriesExpr
 

Compute a new time series where each interval has the value (a * b) where a and b are the corresponding intervals in the input time series.

Parameters

  • ts1: First time series or numeric value (multiplicand)
  • ts2: Second time series or numeric value to multiply with the first (multiplier)

Examples

Multiplying a time series by a constant (e.g., converting to different units):

BeforeAfter
name,sps,:eq
name,sps,:eq,
1024,:mul

Multiplying two time series together:

BeforeAfter
name,requestLatency,:eq,
:sum,
name,requestsPerSecond,:eq,
:max,
(,name,),:by
name,requestLatency,:eq,
:sum,
name,requestsPerSecond,:eq,
:max,
(,name,),:by,
:mul
  • :add - Add two time series
  • :sub - Subtract two time series
  • :div - Divide two time series
  • :fmul - Equivalent to :mul (provided for symmetry with other math operations)
  • :pow - Raise to a power