Returns the absolute value of x.
Returns the quotient of the integer division x / n.
Returns the remainder of dividing two integers. Floating point numbers will be rounded to integer before computation.
Returns the IEEE-remainder of dividing two specified numbers.
Returns the greatest common divisor of the integers a and b.
Returns the least common multiple of the integers a and b.
Computes the square root of the sum of the squares of a number serie.
\(\displaystyle h=\sqrt{a^2+b^2+...n^2}\)
The bits of a binary number are numbered by LSB 0 (least significant bit). This means that the least significant bit is 0.
Logical AND operation of all bits of two integers.
Logical OR operation of all bits of two integers.
Logical exclusive OR combination of all bits of two integers.
Inversion of the bits of the integer a. The number of bits involved is specified in n.
Sets a bit of the integer a to 1. n is the number of the bit (LSB 0).
Sets a bit of the integer a to 0. n is the number of the bit (LSB 0).
Shifts the bits of the integers a to the left. n is the number of shifted digits.
Shifts the bits of the integers a to the right. n is the number of shifted digits.
Return the bit value at position n of the unsigned integers in a.
Returns the number of possible combinations that can be obtained by taking a sample (k) of items from a larger set (n) without repetition.
Returns the number of possible variations k from the total n without repetition.
Compute the sigmoid function. A sigmoid function, or S-function, is a mathematical function with an S-shaped graph.
\(\displaystyle sig(x)=\frac{1}{1+e^{-x}}=\frac{e^x}{1+e^x}\)
Compute the derivative of the sigmoid function.
\(\displaystyle dsig(x)=1-sig(x)= 1-\frac{1}{1+e^{-x}}\)
Compute logit, the inverse function of the logistic sigmoid function.
\(\displaystyle sig^{-1}(y)= -ln\left(\frac{1}{y}-1\right) = ln\left(\frac{y}{1-y}\right) \)
Compute softsign function. The function is used in the activation function of the neural network.
\(\displaystyle softsign (x)= \frac{x}{1+|x|} \)
Return the smallest integer not less than x. This is equivalent to rounding towards positive infinity.
Return the largest integer not greater than x. This is equivalent to rounding towards negative infinity.
Return the integer nearest to x.
Return the integer nearest to x. If there are two nearest integers, return the even one (banker’s rounding).
Truncate fractional portion of x and return the integer portion. This is equivalent to rounding towards zero.