# Module: tfm.optimization.math

This module provides access to the mathematical functions defined by the C standard.

## Functions

`acos(...)`: Return the arc cosine (measured in radians) of x.

`acosh(...)`: Return the inverse hyperbolic cosine of x.

`asin(...)`: Return the arc sine (measured in radians) of x.

`asinh(...)`: Return the inverse hyperbolic sine of x.

`atan(...)`: Return the arc tangent (measured in radians) of x.

`atan2(...)`: Return the arc tangent (measured in radians) of y/x.

`atanh(...)`: Return the inverse hyperbolic tangent of x.

`ceil(...)`: Return the ceiling of x as an Integral.

`comb(...)`: Number of ways to choose k items from n items without repetition and without order.

`copysign(...)`: Return a float with the magnitude (absolute value) of x but the sign of y.

`cos(...)`: Return the cosine of x (measured in radians).

`cosh(...)`: Return the hyperbolic cosine of x.

`degrees(...)`: Convert angle x from radians to degrees.

`dist(...)`: Return the Euclidean distance between two points p and q.

`erf(...)`: Error function at x.

`erfc(...)`: Complementary error function at x.

`exp(...)`: Return e raised to the power of x.

`expm1(...)`: Return exp(x)-1.

`fabs(...)`: Return the absolute value of the float x.

`factorial(...)`: Find x!.

`floor(...)`: Return the floor of x as an Integral.

`fmod(...)`: Return fmod(x, y), according to platform C.

`frexp(...)`: Return the mantissa and exponent of x, as pair (m, e).

`fsum(...)`: Return an accurate floating point sum of values in the iterable seq.

`gamma(...)`: Gamma function at x.

`gcd(...)`: Greatest Common Divisor.

`hypot(...)`: hypot(*coordinates) -> value

`isclose(...)`: Determine whether two floating point numbers are close in value.

`isfinite(...)`: Return True if x is neither an infinity nor a NaN, and False otherwise.

`isinf(...)`: Return True if x is a positive or negative infinity, and False otherwise.

`isnan(...)`: Return True if x is a NaN (not a number), and False otherwise.

`isqrt(...)`: Return the integer part of the square root of the input.

`lcm(...)`: Least Common Multiple.

`ldexp(...)`: Return x * (2**i).

`lgamma(...)`: Natural logarithm of absolute value of Gamma function at x.

`log(...)`: log(x, [base=math.e])

`log10(...)`: Return the base 10 logarithm of x.

`log1p(...)`: Return the natural logarithm of 1+x (base e).

`log2(...)`: Return the base 2 logarithm of x.

`modf(...)`: Return the fractional and integer parts of x.

`nextafter(...)`: Return the next floating-point value after x towards y.

`perm(...)`: Number of ways to choose k items from n items without repetition and with order.

`pow(...)`: Return x**y (x to the power of y).

`prod(...)`: Calculate the product of all the elements in the input iterable.

`radians(...)`: Convert angle x from degrees to radians.

`remainder(...)`: Difference between x and the closest integer multiple of y.

`sin(...)`: Return the sine of x (measured in radians).

`sinh(...)`: Return the hyperbolic sine of x.

`sqrt(...)`: Return the square root of x.

`tan(...)`: Return the tangent of x (measured in radians).

`tanh(...)`: Return the hyperbolic tangent of x.

`trunc(...)`: Truncates the Real x to the nearest Integral toward 0.

`ulp(...)`: Return the value of the least significant bit of the float x.

e `2.718281828459045`
inf `inf`
nan `nan`
pi `3.141592653589793`
tau `6.283185307179586`

[{ "type": "thumb-down", "id": "missingTheInformationINeed", "label":"Missing the information I need" },{ "type": "thumb-down", "id": "tooComplicatedTooManySteps", "label":"Too complicated / too many steps" },{ "type": "thumb-down", "id": "outOfDate", "label":"Out of date" },{ "type": "thumb-down", "id": "samplesCodeIssue", "label":"Samples / code issue" },{ "type": "thumb-down", "id": "otherDown", "label":"Other" }]
[{ "type": "thumb-up", "id": "easyToUnderstand", "label":"Easy to understand" },{ "type": "thumb-up", "id": "solvedMyProblem", "label":"Solved my problem" },{ "type": "thumb-up", "id": "otherUp", "label":"Other" }]