Blocking math [Obj,Double]
Description
Executes a free math expression on the values of the second column, for matching objects (according to the PAIRS
input).
Warning: this block can fail if the expression is invalid (e.g., referring to a non available mathematical function), or if the expressions computes to invalid results (e.g., division by zero).
Input
A [OBJ,DOUBLE]
: a list of pairsPAIRS
: Pairs ofA
(first column) andB
(second column) objects for which to compute the expressionB [OBJ,DOUBLE]
: a list of pairs
Output
RESA [OBJ,DOUBLE]
: result of the operation, with matching objects fromA
RESB [OBJ,DOUBLE]
: result of the operation, with matching objects fromB
Parameters
Expression
: the mathematical expression to compute- use
$A
and$B
to refer to the values comings from inputsA
andB
- arithmetic operators and common mathematical functions can be used
- the expression is evaluated by the database engine. See MonetDB Functions and Operators for a full list of functions and operators available.
- use