Skip to main content

PolynomialUtils

PolynomialUtils

Functions

solveOrderedRealLinear

PolynomialUtils.solveOrderedRealLinear(
anumber,
bnumber
) → number?

Solves a linear ordered equation

solveOrderedRealQuadratic

PolynomialUtils.solveOrderedRealQuadratic(
anumber,
bnumber,
cnumber
) → (
number?,
number?
)

Solves a quadratic polynomial

Show raw api
{
    "functions": [
        {
            "name": "solveOrderedRealLinear",
            "desc": "Solves a linear ordered equation",
            "params": [
                {
                    "name": "a",
                    "desc": "",
                    "lua_type": "number"
                },
                {
                    "name": "b",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 14,
                "path": "src/polynomialutils/src/Shared/PolynomialUtils.lua"
            }
        },
        {
            "name": "solveOrderedRealQuadratic",
            "desc": "Solves a quadratic polynomial",
            "params": [
                {
                    "name": "a",
                    "desc": "",
                    "lua_type": "number"
                },
                {
                    "name": "b",
                    "desc": "",
                    "lua_type": "number"
                },
                {
                    "name": "c",
                    "desc": "",
                    "lua_type": "number"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "number?"
                },
                {
                    "desc": "",
                    "lua_type": "number?"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 32,
                "path": "src/polynomialutils/src/Shared/PolynomialUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "PolynomialUtils",
    "desc": "PolynomialUtils",
    "source": {
        "line": 5,
        "path": "src/polynomialutils/src/Shared/PolynomialUtils.lua"
    }
}