Type Alias NumericMapFunc<ParamLength>

NumericMapFunc: (...params: ArrayFixedLength<number, ParamLength>) => number

represents a scalar mathematical function of ParamLength number of input parameters (or variables).

for instance, a scalar addition function is merely a mapping from domains: $X,Y \in \R$ to $Z \in \R$: $\text{Add} : X \times Y \rightarrow Z$ .

const add_func: NumericMapFunc<2> = (x, y) => x + y

Type Parameters

  • ParamLength extends number

Type declaration