{
    "content": [
        {
            "type": "text",
            "text": "# math (pydoc)\n\n**Summary:** math\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **DESCRIPTION** (3 lines)\n- **FUNCTIONS** (1 lines) — 53 subsections\n  - acos (4 lines)\n  - acosh (2 lines)\n  - asin (4 lines)\n  - asinh (2 lines)\n  - atan (4 lines)\n  - atan2 (4 lines)\n  - atanh (2 lines)\n  - ceil (4 lines)\n  - comb (12 lines)\n  - copysign (5 lines)\n  - cos (2 lines)\n  - cosh (2 lines)\n  - degrees (2 lines)\n  - dist (8 lines)\n  - erf (2 lines)\n  - erfc (2 lines)\n  - exp (2 lines)\n  - expm1 (4 lines)\n  - fabs (2 lines)\n  - factorial (4 lines)\n  - floor (4 lines)\n  - fmod (4 lines)\n  - frexp (5 lines)\n  - fsum (4 lines)\n  - gamma (2 lines)\n  - gcd (2 lines)\n  - hypot (15 lines)\n  - isclose (18 lines)\n  - isfinite (2 lines)\n  - isinf (2 lines)\n  - isnan (2 lines)\n  - isqrt (2 lines)\n  - lcm (2 lines)\n  - ldexp (4 lines)\n  - lgamma (2 lines)\n  - log (5 lines)\n  - log10 (2 lines)\n  - log1p (4 lines)\n  - log2 (2 lines)\n  - modf (4 lines)\n  - nextafter (2 lines)\n  - perm (11 lines)\n  - pow (2 lines)\n  - prod (8 lines)\n  - radians (2 lines)\n  - remainder (6 lines)\n  - sin (2 lines)\n  - sinh (2 lines)\n  - sqrt (2 lines)\n  - tan (2 lines)\n  - tanh (2 lines)\n  - trunc (4 lines)\n  - ulp (2 lines)\n- **DATA** (6 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nmath\n\n### DESCRIPTION\n\nThis module provides access to the mathematical functions\ndefined by the C standard.\n\n### FUNCTIONS\n\n#### acos\n\nReturn the arc cosine (measured in radians) of x.\n\nThe result is between 0 and pi.\n\n#### acosh\n\nReturn the inverse hyperbolic cosine of x.\n\n#### asin\n\nReturn the arc sine (measured in radians) of x.\n\nThe result is between -pi/2 and pi/2.\n\n#### asinh\n\nReturn the inverse hyperbolic sine of x.\n\n#### atan\n\nReturn the arc tangent (measured in radians) of x.\n\nThe result is between -pi/2 and pi/2.\n\n#### atan2\n\nReturn the arc tangent (measured in radians) of y/x.\n\nUnlike atan(y/x), the signs of both x and y are considered.\n\n#### atanh\n\nReturn the inverse hyperbolic tangent of x.\n\n#### ceil\n\nReturn the ceiling of x as an Integral.\n\nThis is the smallest integer >= x.\n\n#### comb\n\nNumber of ways to choose k items from n items without repetition and without order.\n\nEvaluates to n! / (k! * (n - k)!) when k <= n and evaluates\nto zero when k > n.\n\nAlso called the binomial coefficient because it is equivalent\nto the coefficient of k-th term in polynomial expansion of the\nexpression (1 + x)n.\n\nRaises TypeError if either of the arguments are not integers.\nRaises ValueError if either of the arguments are negative.\n\n#### copysign\n\nReturn a float with the magnitude (absolute value) of x but the sign of y.\n\nOn platforms that support signed zeros, copysign(1.0, -0.0)\nreturns -1.0.\n\n#### cos\n\nReturn the cosine of x (measured in radians).\n\n#### cosh\n\nReturn the hyperbolic cosine of x.\n\n#### degrees\n\nConvert angle x from radians to degrees.\n\n#### dist\n\nReturn the Euclidean distance between two points p and q.\n\nThe points should be specified as sequences (or iterables) of\ncoordinates.  Both inputs must have the same dimension.\n\nRoughly equivalent to:\nsqrt(sum((px - qx)  2.0 for px, qx in zip(p, q)))\n\n#### erf\n\nError function at x.\n\n#### erfc\n\nComplementary error function at x.\n\n#### exp\n\nReturn e raised to the power of x.\n\n#### expm1\n\nReturn exp(x)-1.\n\nThis function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x.\n\n#### fabs\n\nReturn the absolute value of the float x.\n\n#### factorial\n\nFind x!.\n\nRaise a ValueError if x is negative or non-integral.\n\n#### floor\n\nReturn the floor of x as an Integral.\n\nThis is the largest integer <= x.\n\n#### fmod\n\nReturn fmod(x, y), according to platform C.\n\nx % y may differ.\n\n#### frexp\n\nReturn the mantissa and exponent of x, as pair (m, e).\n\nm is a float and e is an int, such that x = m * 2.e.\nIf x is 0, m and e are both 0.  Else 0.5 <= abs(m) < 1.0.\n\n#### fsum\n\nReturn an accurate floating point sum of values in the iterable seq.\n\nAssumes IEEE-754 floating point arithmetic.\n\n#### gamma\n\nGamma function at x.\n\n#### gcd\n\nGreatest Common Divisor.\n\n#### hypot\n\nhypot(*coordinates) -> value\n\nMultidimensional Euclidean distance from the origin to a point.\n\nRoughly equivalent to:\nsqrt(sum(x2 for x in coordinates))\n\nFor a two dimensional point (x, y), gives the hypotenuse\nusing the Pythagorean theorem:  sqrt(x*x + y*y).\n\nFor example, the hypotenuse of a 3/4/5 right triangle is:\n\n>>> hypot(3.0, 4.0)\n5.0\n\n#### isclose\n\nDetermine whether two floating point numbers are close in value.\n\nreltol\nmaximum difference for being considered \"close\", relative to the\nmagnitude of the input values\nabstol\nmaximum difference for being considered \"close\", regardless of the\nmagnitude of the input values\n\nReturn True if a is close in value to b, and False otherwise.\n\nFor the values to be considered close, the difference between them\nmust be smaller than at least one of the tolerances.\n\n-inf, inf and NaN behave similarly to the IEEE 754 Standard.  That\nis, NaN is not close to anything, even itself.  inf and -inf are\nonly close to themselves.\n\n#### isfinite\n\nReturn True if x is neither an infinity nor a NaN, and False otherwise.\n\n#### isinf\n\nReturn True if x is a positive or negative infinity, and False otherwise.\n\n#### isnan\n\nReturn True if x is a NaN (not a number), and False otherwise.\n\n#### isqrt\n\nReturn the integer part of the square root of the input.\n\n#### lcm\n\nLeast Common Multiple.\n\n#### ldexp\n\nReturn x * (2i).\n\nThis is essentially the inverse of frexp().\n\n#### lgamma\n\nNatural logarithm of absolute value of Gamma function at x.\n\n#### log\n\nlog(x, [base=math.e])\nReturn the logarithm of x to the given base.\n\nIf the base not specified, returns the natural logarithm (base e) of x.\n\n#### log10\n\nReturn the base 10 logarithm of x.\n\n#### log1p\n\nReturn the natural logarithm of 1+x (base e).\n\nThe result is computed in a way which is accurate for x near zero.\n\n#### log2\n\nReturn the base 2 logarithm of x.\n\n#### modf\n\nReturn the fractional and integer parts of x.\n\nBoth results carry the sign of x and are floats.\n\n#### nextafter\n\nReturn the next floating-point value after x towards y.\n\n#### perm\n\nNumber of ways to choose k items from n items without repetition and with order.\n\nEvaluates to n! / (n - k)! when k <= n and evaluates\nto zero when k > n.\n\nIf k is not specified or is None, then k defaults to n\nand the function returns n!.\n\nRaises TypeError if either of the arguments are not integers.\nRaises ValueError if either of the arguments are negative.\n\n#### pow\n\nReturn xy (x to the power of y).\n\n#### prod\n\nCalculate the product of all the elements in the input iterable.\n\nThe default start value for the product is 1.\n\nWhen the iterable is empty, return the start value.  This function is\nintended specifically for use with numeric values and may reject\nnon-numeric types.\n\n#### radians\n\nConvert angle x from degrees to radians.\n\n#### remainder\n\nDifference between x and the closest integer multiple of y.\n\nReturn x - n*y where n*y is the closest integer multiple of y.\nIn the case where x is exactly halfway between two multiples of\ny, the nearest even value of n is used. The result is always exact.\n\n#### sin\n\nReturn the sine of x (measured in radians).\n\n#### sinh\n\nReturn the hyperbolic sine of x.\n\n#### sqrt\n\nReturn the square root of x.\n\n#### tan\n\nReturn the tangent of x (measured in radians).\n\n#### tanh\n\nReturn the hyperbolic tangent of x.\n\n#### trunc\n\nTruncates the Real x to the nearest Integral toward 0.\n\nUses the trunc magic method.\n\n#### ulp\n\nReturn the value of the least significant bit of the float x.\n\n### DATA\n\ne = 2.718281828459045\ninf = inf\nnan = nan\npi = 3.141592653589793\ntau = 6.283185307179586\n\n### FILE\n\n(built-in)\n\n"
        }
    ],
    "structuredContent": {
        "command": "math",
        "section": "",
        "mode": "pydoc",
        "summary": "math",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "FUNCTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "acos",
                        "lines": 4
                    },
                    {
                        "name": "acosh",
                        "lines": 2
                    },
                    {
                        "name": "asin",
                        "lines": 4
                    },
                    {
                        "name": "asinh",
                        "lines": 2
                    },
                    {
                        "name": "atan",
                        "lines": 4
                    },
                    {
                        "name": "atan2",
                        "lines": 4
                    },
                    {
                        "name": "atanh",
                        "lines": 2
                    },
                    {
                        "name": "ceil",
                        "lines": 4
                    },
                    {
                        "name": "comb",
                        "lines": 12
                    },
                    {
                        "name": "copysign",
                        "lines": 5
                    },
                    {
                        "name": "cos",
                        "lines": 2
                    },
                    {
                        "name": "cosh",
                        "lines": 2
                    },
                    {
                        "name": "degrees",
                        "lines": 2
                    },
                    {
                        "name": "dist",
                        "lines": 8
                    },
                    {
                        "name": "erf",
                        "lines": 2
                    },
                    {
                        "name": "erfc",
                        "lines": 2
                    },
                    {
                        "name": "exp",
                        "lines": 2
                    },
                    {
                        "name": "expm1",
                        "lines": 4
                    },
                    {
                        "name": "fabs",
                        "lines": 2
                    },
                    {
                        "name": "factorial",
                        "lines": 4
                    },
                    {
                        "name": "floor",
                        "lines": 4
                    },
                    {
                        "name": "fmod",
                        "lines": 4
                    },
                    {
                        "name": "frexp",
                        "lines": 5
                    },
                    {
                        "name": "fsum",
                        "lines": 4
                    },
                    {
                        "name": "gamma",
                        "lines": 2
                    },
                    {
                        "name": "gcd",
                        "lines": 2
                    },
                    {
                        "name": "hypot",
                        "lines": 15
                    },
                    {
                        "name": "isclose",
                        "lines": 18
                    },
                    {
                        "name": "isfinite",
                        "lines": 2
                    },
                    {
                        "name": "isinf",
                        "lines": 2
                    },
                    {
                        "name": "isnan",
                        "lines": 2
                    },
                    {
                        "name": "isqrt",
                        "lines": 2
                    },
                    {
                        "name": "lcm",
                        "lines": 2
                    },
                    {
                        "name": "ldexp",
                        "lines": 4
                    },
                    {
                        "name": "lgamma",
                        "lines": 2
                    },
                    {
                        "name": "log",
                        "lines": 5
                    },
                    {
                        "name": "log10",
                        "lines": 2
                    },
                    {
                        "name": "log1p",
                        "lines": 4
                    },
                    {
                        "name": "log2",
                        "lines": 2
                    },
                    {
                        "name": "modf",
                        "lines": 4
                    },
                    {
                        "name": "nextafter",
                        "lines": 2
                    },
                    {
                        "name": "perm",
                        "lines": 11
                    },
                    {
                        "name": "pow",
                        "lines": 2
                    },
                    {
                        "name": "prod",
                        "lines": 8
                    },
                    {
                        "name": "radians",
                        "lines": 2
                    },
                    {
                        "name": "remainder",
                        "lines": 6
                    },
                    {
                        "name": "sin",
                        "lines": 2
                    },
                    {
                        "name": "sinh",
                        "lines": 2
                    },
                    {
                        "name": "sqrt",
                        "lines": 2
                    },
                    {
                        "name": "tan",
                        "lines": 2
                    },
                    {
                        "name": "tanh",
                        "lines": 2
                    },
                    {
                        "name": "trunc",
                        "lines": 4
                    },
                    {
                        "name": "ulp",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}