# httk.core.vectors.vectormath module¶

`httk.core.vectors.vectormath.``acos`(x, **args)[source]

Return the arc cosine of x, in radians.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``acosh`(x, **args)[source]

Return the inverse hyperbolic cosine of x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``asin`(x, **args)[source]

Return the arc sine of x, in radians.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``asinh`(x, **args)[source]

Return the inverse hyperbolic sine of x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``atan`(x, **args)[source]

Return the arc tangent of x, in radians.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``atan2`(x, y, **args)[source]

Return atan(y / x), in radians. The result is between -pi and pi. The vector in the plane from the origin to point (x, y) makes this angle with the positive X axis. The point of atan2() is that the signs of both inputs are known to it, so it can compute the correct quadrant for the angle. For example, atan(1) and atan2(1, 1) are both pi/4, but atan2(-1, -1) is -3*pi/4.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``atanh`(x, **args)[source]

Return the inverse hyperbolic tangent of x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``ceil`(x, **args)[source]

Return the ceiling of x, the smallest integer value greater than or equal to x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``copysign`(x, y, **args)[source]

Return x with the sign of y. If an element of y is zero, abs of the corresponding element in x is returned.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``cos`(x, **args)[source]

Return the cosine of x radians.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``cosh`(x, **args)[source]

Return the hyperbolic cosine of x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``degrees`(x, **args)[source]

Convert angle x from radians to degrees.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``e`(x, **args)[source]

Return the value of e represented using the same scalar or vector representation as x.

`httk.core.vectors.vectormath.``erf`(x, **args)[source]

Return the error function at x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``erfc`(x, **args)[source]

Return the complementary error function at x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``exp`(x, **args)[source]

Return e**x. (For vectors applied to each element.)

`httk.core.vectors.vectormath.``expm1`(x, **args)[source]

Return e**x - 1. (For vectors applied to each element.)

`httk.core.vectors.vectormath.``fabs`(x, **args)[source]

Return the absolute value of x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``factorial`(x, **args)[source]

Return x factorial. Raises ValueError if (any element of) x is negative.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``floor`(x, **args)[source]

Return the floor of x, the largest integer value less than or equal to x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``fmod`(x, y, **args)[source]

Equivalent to x % y.

`httk.core.vectors.vectormath.``frexp`(x, **args)[source]

Return the mantissa and exponent of x as the pair (m, e). m is a float and e is an integer such that x == m * 2**e exactly. If x is zero, returns (0.0, 0), otherwise 0.5 <= abs(m) < 1.

(For vectors applied to each element and returns tuples nested in lists.)

`httk.core.vectors.vectormath.``fsum`(iterable, **args)[source]

Equivalent to sum(iterable)

`httk.core.vectors.vectormath.``gamma`(x, **args)[source]

Return the Gamma function at x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``hypot`(x, y, **args)[source]

Return the Euclidean norm, sqrt(x*x + y*y). This is the length of the vector from the origin to point (x, y).

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``isanyinf`(x, **args)[source]

Check if the float x is positive or negative infinity.

(For vectors returns True/False if any element is inf)

`httk.core.vectors.vectormath.``isanynan`(x, **args)[source]

Check if the float x is a NaN (not a number).

(For vectors returns True/False if any element is NaN)

`httk.core.vectors.vectormath.``isinf`(x, **args)[source]

Check if the float x is positive or negative infinity.

(For vectors applied to each element and returns True/False as nested lists.)

`httk.core.vectors.vectormath.``isnan`(x, **args)[source]

Check if the float x is a NaN (not a number).

(For vectors applied to each element and returns True/False as nested lists.)

`httk.core.vectors.vectormath.``ldexp`(x, **args)[source]

Return x * (2**i). This is essentially the inverse of function frexp().

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``lgamma`(x, **args)[source]

Return the natural logarithm of the absolute value of the Gamma function at x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``log`(x, base=None, **args)[source]

With one argument, return the natural logarithm of x (to base e).

With two arguments, return the logarithm of x to the given base, calculated as log(x)/log(base).

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``log10`(x, **args)[source]

Return the base-10 logarithm of x. This is usually more accurate than log(x, 10).

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``log1p`(x, **args)[source]

Return the natural logarithm of 1+x (base e). The result is calculated in a way which is accurate for x near zero.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``main`()[source]
`httk.core.vectors.vectormath.``modf`(x, **args)[source]

Return the fractional and integer parts of x. Both results carry the sign of x.

(For vectors applied to each element and returns tuples nested in lists.)

`httk.core.vectors.vectormath.``pi`(x, **args)[source]

Return the value of pi represented using the same scalar or vector representation as x.

`httk.core.vectors.vectormath.``pow`(x, y, **args)[source]

Return x raised to the power y. Equivalent with x**y

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``radians`(x, **args)[source]

Convert angle x from degrees to radians.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``sign`(x, **args)[source]

Return the sign of x, equivalent to copysign(1,x).

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``sin`(x, **args)[source]

Return the sine of x radians.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``sinh`(x, **args)[source]

Return the hyperbolic sine of x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``sqrt`(x, **args)[source]

Return the square root of x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``tan`(x, **args)[source]

Return the tangent of x radians.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``tanh`(x, **args)[source]

Return the hyperbolic tangent of x.

(For vectors applied to each element.)

`httk.core.vectors.vectormath.``trunc`(x, **args)[source]

Returns the integer part of x.

(For vectors applied to each element.)