Module Operator.Scalar

add a b returns the sum of the scalars a and b.

sub a b returns the difference of the scalars a and b.

mul a b returns the product of the scalars a and b.

div a b returns the quotient of the scalars a and b.

pow a b returns the scalar a raised to the power of b.

atan2 y x returns the arctangent of y / x, considering the signs of x and y to determine the correct quadrant.

abs a returns the absolute value of the scalar a.

neg a returns the negation of the scalar a.

sqr a returns the square of the scalar a.

sqrt a returns the square root of the scalar a.

exp a returns the exponential of the scalar a.

log a returns the natural logarithm of the scalar a.

log2 a returns the base-2 logarithm of the scalar a.

log10 a returns the base-10 logarithm of the scalar a.

signum a returns the signum function of the scalar a, which is -1 for negative, 0 for zero, and 1 for positive values.

floor a returns the greatest integer less than or equal to the scalar a.

ceil a returns the smallest integer greater than or equal to the scalar a.

round a returns the nearest integer to the scalar a.

sin a returns the sine of the scalar a.

cos a returns the cosine of the scalar a.

tan a returns the tangent of the scalar a.

sinh a returns the hyperbolic sine of the scalar a.

cosh a returns the hyperbolic cosine of the scalar a.

tanh a returns the hyperbolic tangent of the scalar a.

asin a returns the arcsine of the scalar a.

acos a returns the arccosine of the scalar a.

atan a returns the arctangent of the scalar a.

asinh a returns the inverse hyperbolic sine of the scalar a.

acosh a returns the inverse hyperbolic cosine of the scalar a.

atanh a returns the inverse hyperbolic tangent of the scalar a.

relu a applies the Rectified Linear Unit (ReLU) function to the scalar a, returning max(0, a).

dawsn a returns Dawson's function of the scalar a.

sigmoid a returns the sigmoid function of the scalar a.