ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("lara.Numbers");

(.lara)
import lara.Numbers;

Numbers

Numbers

Numbers

Static Members

factorial

factorial(num)

Taken from here: https://stackoverflow.com/questions/3959211/fast-factorial-function-in-javascript#3959275

Parameters

num: any

mean

mean(values)

Parameters

values: any

Returns

number - Arithmetic mean of the given values.

sum

sum(values)

Parameters

values: any

Returns

number - Sum of the given values.

toIndexesArray

toIndexesArray(number)

Parameters

number: number - A number to convert to indexes.

Returns

any - An array with indexes corresponding to the active bits of the given number