Skip to content

Main content

Polynomial Value Slope Pair

Evaluate a nonempty ascending-power polynomial and derivative at one finite x using Horner arithmetic; no root or stability claim.

Loading tool…

Description

Evaluate a nonempty ascending-power polynomial and derivative at one finite x using Horner arithmetic; no root or stability claim.

A coefficient list here is constant-first: index j multiplies x to power j. Thus [1, 2, 3] represents 1 + 2x + 3x². Trailing list zeros are high-power zeros; stored length can differ from mathematical degree, and the zero polynomial needs a separate degree convention.

Evaluate a nonempty ascending-power polynomial and derivative at one finite x using Horner arithmetic; no root or stability claim.

When to use this tool

Use this tool to evaluate a nonempty ascending-power polynomial and derivative at one finite x using Horner arithmetic; no root or stability claim.

How to use the tool and how it works

  1. Enter coefficients, x using the field definitions below.
  2. Run the operation. Correct input errors before interpreting an output.
  3. Read result.value, result.slope. Use the ordering, boundary rules and absence conditions described below.

Evaluate constant-first coefficients with Horner’s method at x. Form derivative coefficients by multiplying each power’s coefficient by that power and evaluate the slope too.1

Input fieldMeaning and unitsAccepted input
coefficientsNonempty coefficients in ascending power order [constant, x, x², ...].Dense list of at most 128 finite numbers; integer/shape constraints above also apply.
xFinite argument where value and slope are evaluated.A finite number satisfying the operation’s stated comparisons.
Output fieldInterpretation
resultObject containing the named fields below.
result.valuePolynomial value at the supplied x.
result.slopeFormal derivative evaluated at x.
json
{
  "input": {
    "coefficients": [
      1,
      2,
      3
    ],
    "x": 2
  },
  "output": {
    "result": {
      "value": 17,
      "slope": 14
    }
  }
}

Limitations and assumptions

  • The list must be nonempty; the slope is with respect to x, using ordinary floating-point arithmetic.
  • Coefficient lists use ascending powers and ordinary floating-point arithmetic. Nonempty input is required; individual operations impose tighter size limits. The tool does not attach or check physical units for x and its coefficients.
  • Every declared top-level input field is required and unexpected fields are rejected. Ordinary strings are limited to 8,192 UTF-16 code units and lists to 128 entries, with tighter operation-specific bounds where stated. JSON text has bounded nesting and node counts.
  • Numeric outputs must be finite and no larger in absolute magnitude than the safe-integer limit; operations returning exact large integers use decimal text. Positions are zero-based and spans end exclusively unless the operation explicitly states a different convention.

Alternative or Complementary methods

Check coefficient order before importing data from another algebra library. Use separate root-finding or symbolic algebra methods when an operation requires more than the stated coefficient transformation.

References

  1. Tool behavior and example: Polynomial Value Slope Pair — tool.io

Similar or alternative tools