Skip to content

Main content

Algebra: Monomial Variable Degree Label Tool

Read the exponent of one named variable from an explicit unique variable/exponent monomial map, preserving absent-variable zero.

Loading tool…

Description

Return a requested variable's supplied exponent.

A monomial combines a coefficient with variable exponents. Ordinary nonnegative exponents and signed Laurent exponents have different domains; exponent-vector divisibility and greatest-common-factor rules describe the variable part unless coefficients are explicitly included. Zero coefficients and absent variables need separate flags.

Return a requested variable's supplied exponent.

When to use this tool

Use Algebra: Monomial Variable Degree Label when checking the stated exponent-vector, support, coefficient or Laurent convention.

How to use the tool and how it works

  1. Enter variables, exponents, variable. Follow any array-alignment requirements below. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read result. Expand result to inspect the returned fields.

Return a requested variable's supplied exponent. Require aligned unique nonempty variable labels and exponents whole 0..1e6; present tests label membership, exponent is its entry or zero when absent.1

Input fieldMeaning and unitsAccepted input
variablesVariablesRequired. Array of text. Implementation limit: 128 items.
exponentsExponentsRequired. Array of finite number. Implementation limit: 128 items.
variableVariableRequired. Text. Implementation limit: 8192 Unicode code points and 16384 UTF-16 code units.
Output fieldInterpretationReturned shape
resultObject containing the returned operation-specific members listed below.Required. Object.
result.exponentExponentCalculated result member: number.
result.presentWhether variable is explicitly listed; a listed zero exponent is still present.Calculated result member: boolean.
json
{
  "input": {
    "variables": [
      "x",
      "y"
    ],
    "exponents": [
      2,
      3
    ],
    "variable": "z"
  },
  "output": {
    "result": {
      "exponent": 0,
      "present": false
    }
  }
}

Limitations and assumptions

  • A listed zero exponent differs from an absent label; no polynomial parsing, support inference beyond these labels or coefficient check is performed.
  • Outputs are nested inside result. Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use the complete coefficient domain and variable assumptions for symbolic simplification, full monomial divisibility or algebraic-domain conclusions.

References

  1. Calculation and input contract: algebra/monomial-variable-degree-label — tool.io

Similar or alternative tools