How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Polynomial interpolation and remainder
1 · Prerequisites
- Algebraic Extensions, Extension Degree, and Finite Fields
- Binary Operations, Monoids, Groups and Subgroups
- Chains, Antichains, Sperner and Dilworth
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Countability and Uncountability
- Darboux, L'Hôpital, and Taylor's Theorem
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Fundamental Trigonometric Identities
- Limits of Real Functions
- Matrix Norms, Condition Numbers and Numerical Stability
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Suprema and Infima
- The Derivative and the Mean Value Theorems
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
2 · Summary
For distinct real nodes, this page defines the cardinal interpolation functions and proves that their interpolant is the unique polynomial of degree at most the node count minus one. It derives the barycentric denominator identity from interpolation uniqueness and the pointwise Lagrange remainder from the published higher-order Rolle theorem. The local coefficient-list and finite-product lemmas make the products, quotients, finite sums, and degree claims precise in the library's formal-polynomial convention.
The page also gives a finite checked-arithmetic barycentric evaluator with exact node handling and explicit invalid-input and range-failure statuses. Its finite-precision definition makes no forward-error or conditioning guarantee. On equispaced nodes, a cardinal basis function has a value bounded below proportionally to the degree; this varying-data amplification example makes no fixed-function divergence claim.
3 · Logical flowchart
4 · Definitions, theorems and proofs
A finite coefficient vector has a canonical polynomial representative
Statement
For every and reals , the function is the evaluation of a formal real polynomial of degree at most . The representative can be chosen so that it is the zero polynomial exactly when every ; if , it has degree and leading coefficient . Here the coefficient vector may be padded by zeros for the displayed sum; padding describes the evaluation, not a change to the formal polynomial object.
Facts & Assumptions
Given: A natural and a finite real coefficient vector .
Formal real polynomials, evaluation, degree, leading coefficient, and monic polynomials: a nonzero formal polynomial is a finite coefficient list whose final coefficient is nonzero; its evaluation is the corresponding finite sum, and the zero polynomial is a separate object.
Finite sums and finite products, by recursion and Laws of finite sums and finite products: the empty sum is zero, a finite sum extends by its last term, and the finite-sum notation agrees with that recursion.
The principle of mathematical induction: a property true at zero and preserved by successors holds for every natural number.
The reals form a field and Multiplication by zero: : real addition and multiplication have the field identities, including .
Proof
For , if choose the zero polynomial, whose evaluation is ; if , choose the one-term formal list , of degree and leading coefficient . In both cases its evaluation is .
Suppose the assertion holds for vectors of length , and consider . If , the finite-sum recursion and [F4] show that the displayed evaluation is the evaluation for the prefix vector; use its representative from the induction hypothesis. If , the formal coefficient list is valid by [F1], has degree and leading coefficient , and evaluates to the displayed sum by [F2]. The zero-characterization in the first case is inherited from the prefix; in the second case both the vector and the polynomial are nonzero.
Induction [F3] now supplies the representative for every . The construction also proves that it is zero exactly when all vector entries vanish, and that a nonzero final entry is its leading coefficient at degree .
Interchanging two finite real sums
Statement
Let and let for . Then The sums are those recursively defined in Finite sums and finite products, by recursion, and the identity includes .
Facts & Assumptions
Given: A natural number and an -by- array of real numbers.
Finite sums and finite products, by recursion: finite sums have empty value and append by adding the last term. Laws of finite sums and finite products gives additivity of finite sums.
The principle of mathematical induction: a property true at zero and preserved by successors holds for every natural number.
Field and The reals form a field: real addition is associative and commutative.
Proof
For , both iterated sums are empty and equal by [F1].
Assume the identity for every -by- real array, and consider an arbitrary -by- array. Splitting at the last row and column and using finite-sum additivity [F1] gives . Splitting in the opposite order gives . The induction hypothesis equates the first terms, and associativity and commutativity [F3] equate the remaining sums after interchanging their order. Thus the identity holds for the successor size.
Induction [F2] using steps 1.1 and 1.2 proves the identity for every finite square array.
A finite product of nonzero reals is nonzero
Statement
Let and let all be nonzero. Then the finite product is nonzero. For this is the empty product .
Facts & Assumptions
Given: A natural number and a finite list of nonzero real factors.
The principle of mathematical induction: a property true at zero and preserved by successors holds for every natural number.
The reals form a field and Field: is a field and its identities satisfy .
A field has no zero divisors: or : if a product of two field elements is zero, at least one factor is zero.
Proof
For , the empty product is , which is nonzero by [F3].
Suppose the prefix product is nonzero and the next factor is nonzero. By [F1] the extended product is ; [F4] implies it cannot be zero, since both factors are nonzero.
Induction [F2] applied to steps 1.1 and 1.2 proves the claim for every finite list of nonzero real factors.
The highest derivative of a polynomial
Statement
Let , , and let be the evaluation function of a formal real polynomial of degree at most , or the zero polynomial. Write its actual coefficient list through its degree and extend that list by zeros to (all zero for the zero polynomial); this is an evaluation vector, not a change to the formal polynomial object. Define iterated derivatives as in Higher derivatives and the classes and and write , with each natural factor read as its canonical real image under The canonical natural of a field. Then for every . In particular, this derivative is zero if , and it is if is monic of degree .
Facts & Assumptions
Given: A natural number and the evaluation function and padded coefficient vector of a formal polynomial of degree at most , or of the zero polynomial with its all-zero evaluation vector.
Formal real polynomials, evaluation, degree, leading coefficient, and monic polynomials: a nonzero formal real polynomial is a finite coefficient list with nonzero final coefficient, and its evaluation is the corresponding finite sum of coefficients times powers. The zero polynomial is a separate formal object with no degree.
Higher derivatives and the classes and : and, wherever is differentiable, .
For a natural the function is differentiable everywhere with derivative ; for it is the constant , with derivative ; for a natural the function is differentiable at every with derivative ; consequently every polynomial function is differentiable at every real, with the derivative computed term by term and The canonical natural of a field: every finite polynomial sum is differentiable term by term; has derivative for , where the natural coefficient is its canonical real image, and is constant with derivative .
The principle of mathematical induction: a property true at and inherited by successors holds for every natural number.
The canonical natural of a field: a natural number used as a real scalar denotes its canonical real image; the image of a successor is the image of its predecessor plus .
The factorial and the falling factorial , defined by recursion in : the full falling product is the natural factorial , which is also the natural product .
Laws of finite sums and products in , and : the canonical real image of a finite natural product is the corresponding product of real images, so the product representation of in [F6] becomes the stated .
Proof
For a nonzero formal polynomial, [F1] gives , since zero padding adds only zero terms. For the zero polynomial, and the given evaluation vector is all zero, so the same identity holds without representing the formal object by a coefficient list. For , define the real function , with the empty product equal to ; each factor is natural because .
At , by [F2]. If and , termwise differentiation in [F3] kills the constant term and multiplies each term with by its exponent ; for each , the resulting real coefficient is . Indeed the finite natural product extends by its last factor, and [F7] carries that natural identity to the product of canonical real images. The new exponent is , so the differentiated sum is exactly . Hence .
Apply [F4] to the property that implies . Step 2.1 proves . If holds and , then and step 2.1 proves ; if , is vacuous. Thus holds.
At , the sum defining contains only and equals : [F6] identifies the natural falling product with , and [F7] carries it to the real product in the statement. This proves the stated derivative and both special cases.
A finite product of monic linear factors is monic
Statement
For every and reals , the function is the evaluation of a formal real polynomial of degree exactly with leading coefficient . For the product is empty and equals .
Facts & Assumptions
Given: A natural and the indicated finite list of real roots.
Formal real polynomials, evaluation, degree, leading coefficient, and monic polynomials: a finite coefficient list defines its evaluation, degree, and leading coefficient.
Finite sums and finite products, by recursion and Laws of finite sums and finite products: finite sums obey the recursive last-term rule, addition and scalar multiplication.
Laws of integer exponents: powers satisfy and the usual exponent identities.
The reals form a field: real multiplication distributes over addition and has additive inverses.
The principle of mathematical induction: induction holds on .
Proof
At , the empty product is , the evaluation of the one-term polynomial , which is monic of degree zero.
Suppose with , as supplied by the induction hypothesis. Multiplication by the next factor gives By the finite-sum and field laws [F2, F4], this is represented by the coefficient list , for , and . This list is a formal polynomial by [F1]; its last coefficient is , so its degree is and it is monic.
Induction [F5] proves the claim for every finite list length, including the empty product case.
Cardinal-polynomial interpolation
Definition
Let with , let be distinct real nodes, and let . Define the node polynomial and barycentric weights by An empty product is , so when .
In these formulas, is a real argument, and for real and nonzero real , denotes in the field (Field).
For each , the cardinal function is The interpolation function for the data is For a real function defined at the nodes, write .
For products indexed by , use the length- list (), where for and for ; the product is in this order and is empty when . Strict ordering gives for every factor, so A finite product of nonzero reals is nonzero and the field inverse law make each well defined.
A finite product of quotients is the quotient of finite products
Statement
Let , and let and nonzero . For , use to denote . Then The denominator on the right is nonzero by A finite product of nonzero reals is nonzero. The identity includes .
Facts & Assumptions
Given: A finite list of real numerators and a same-length list of nonzero real denominators.
Finite sums and finite products, by recursion: finite products have empty value and extend by multiplying the next term.
The principle of mathematical induction: induction holds on the natural numbers.
The reals form a field and Field: real multiplication is associative and commutative; nonzero elements have inverses.
Identities and inverses in a field are unique: a multiplicative inverse, when it exists, is unique.
A finite product of nonzero reals is nonzero: a finite product of nonzero real factors is nonzero.
Proof
For , both products are empty and equal by [F1]. Also , since and inverses are unique by [F3, F4]. Thus both sides equal .
Assume the identity for the first terms, and append and . Put and . By [F5], both and the extended denominator product are nonzero, so and exist; also exists by [F3]. Associativity and commutativity give , so uniqueness [F4] gives . Using the induction hypothesis, product recursion [F1], and the quotient convention, The equality follows from associativity and commutativity together with .
Induction [F2] applied to steps 1.1 and 1.2 proves the identity for every finite list length.
Cardinal interpolation functions are polynomials of the stated degrees
Statement
Let , let be real nodes, and let . Each cardinal function of Cardinal-polynomial interpolation is the evaluation of a formal polynomial of degree . The node function is the evaluation of a monic formal polynomial of degree , and whenever differs from every node. The function is the evaluation of a formal polynomial of degree at most . At every pair , if and otherwise.
Facts & Assumptions
Given: Ordered real nodes and real interpolation data.
Cardinal-polynomial interpolation: , , , and .
A finite product of monic linear factors is monic: a product of factors has a formal polynomial representative of degree and leading coefficient .
A finite coefficient vector has a canonical polynomial representative: every real coefficient vector through index represents a formal polynomial of degree at most , and a nonzero final coefficient is its leading coefficient.
Formal real polynomials, evaluation, degree, leading coefficient, and monic polynomials: a formal polynomial is its finite coefficient list and its evaluation function is the corresponding finite sum.
The reals form a field, The reals form a totally ordered field, and A field has no zero divisors: or : ordered distinct nodes give nonzero differences, a nonzero real has an inverse, and a product of two nonzero reals is nonzero.
A finite product of nonzero reals is nonzero: a finite product of nonzero real factors is nonzero, including the empty product.
A finite product of quotients is the quotient of finite products: a finite product of quotients with nonzero denominators is the quotient of the corresponding products.
Laws of finite sums and finite products: multiplying every term of a finite real sum by the same scalar multiplies the sum by that scalar.
Interchanging two finite real sums: the order of two finite sums over the same finite square index set may be interchanged.
Laws of finite sums and finite products: a finite product splits into its prefix product times its suffix product.
Multiplication by zero: : multiplying zero by any real gives zero.
Finite sums and finite products, by recursion: a finite product has empty value and extends by multiplying the next factor.
The principle of mathematical induction: induction on the natural-number list length is valid.
Proof
For , strict ordering of the nodes gives . The denominator product in is nonzero by [F6], so its inverse exists and is nonzero by [F5]. List the omitted-node indices in increasing order and put ; [F2] makes this a monic formal polynomial of degree . For an arbitrary real , apply [F7] to the real numerators and denominators in that list. It gives , also when by the empty-product convention. Scale the coefficient list of by ; the resulting vector has final coefficient . By [F3] and [F4] it represents a formal polynomial of degree , and [F8] gives its evaluation for every real .
If , each factor in is for a nonzero difference . Induction [F13] on the list length shows their product is : the empty product is , and appending a factor leaves it unchanged by [F12] and the field identity [F5]. This includes the empty list. If , the omitted-node list contains : its index is when and when . The corresponding quotient factor is because its numerator is , its denominator is nonzero, and [F11] gives times its inverse equal to . Splitting the finite product before and after that factor by [F10] writes as a prefix product times times a suffix product, which is by commutativity [F5] and [F11].
The product lemma [F2] applied to gives a monic polynomial of degree evaluating to , with degree and leading coefficient understood from the formal list [F4].
If differs from every node, each factor is nonzero by [F5], so the product lemma [F6] gives .
For each , let be the coefficient vector of the degree- representative from step 1.1. Define for . For every real , finite-sum scaling [F8], field distributivity, and double-sum interchange [F9] give The vector therefore gives, by [F3], a formal polynomial of degree at most evaluating to .
Equispaced interpolation has linearly growing basis amplification
Statement
Let with , and take the nodes They are equally spaced in . Let be the cardinal function for the node , and set Then In these real formulas, natural numbers and binomial coefficients denote their canonical real images, as specified by The canonical natural of a field, The set of -element subsets and the binomial coefficient , and Laws of finite sums and products in , and .
Facts & Assumptions
Given: , the specified equispaced nodes, and the corresponding cardinal function.
Cardinal-polynomial interpolation: , with the omitted-index product ordered as its length- list.
The set of -element subsets and the binomial coefficient : is a natural number for .
The factorial and the falling factorial , defined by recursion in : factorials are products of positive naturals, is the product of the top factors when , and is the corresponding real product.
for ; hence , the quotient is a natural number, and : for , the real binomial coefficient is , and the natural identity holds.
The binomial coefficients are symmetric and increase to the middle level before decreasing: for even , the coefficient is at least every coefficient in that binomial row.
The binomial theorem over an arbitrary commutative ring: in every commutative ring.
The reals form a field and Every field is a commutative ring with ; it is an integral domain, and it is a commutative division ring: is a commutative ring with the field operations.
The reals form a totally ordered field: real order is total and compatible with field addition and multiplication by positive numbers.
Laws of finite sums and products in , and and The canonical natural of a field: the canonical real images preserve natural addition, multiplication, and order, and carry finite natural sums and products to the corresponding real sums and products.
Laws of finite sums and finite products: finite real sums preserve termwise inequalities, and each nonnegative term is at most the sum.
Laws of integer exponents: real powers obey the natural exponent laws used to combine with .
Proof
Put . Since , the nodes increase from to , and . If , then ; for the right side is , while for it is at least , by [F8, F9]. Thus is not a node.
For , The denominator product is , where . In the numerator, the factor is and the remaining factors are for , with omitted. Pairing the odd factors gives Using [F3, F4] to rewrite the factorial ratios yields the exact identity
Apply [F6] in the commutative ring [F7] with . The sum of the th binomial row is . For and , [F5] says the central term is largest; each coefficient is nonnegative by [F2, F9], so [F10] bounds the row sum above by times its central term. Consequently
By [F6, F7], Here every summand is nonnegative by [F2, F8, F9], and the inequality retains the term using [F10]. From [F3, F4], . Since , each of these four factors is at least , so . Therefore .
Substituting step 1.3 in step 1.2 gives because the three denominator factors are at most , and , respectively.
Combining step 1.4 with step 2.1 yields , as claimed.
Existence and uniqueness of the cardinal-polynomial interpolant
Statement
Let , , let be distinct real nodes, and let . Then from Cardinal-polynomial interpolation is the unique real polynomial of degree at most satisfying for every .
Facts & Assumptions
Given: A natural number , distinct real nodes , and real data .
Cardinal interpolation functions are polynomials of the stated degrees: is the evaluation of a formal polynomial of degree at most , and for and otherwise.
A finite coefficient vector has a canonical polynomial representative: a coefficient vector through index represents a formal polynomial of degree at most , whose representative is zero exactly when all coefficients vanish.
A nonzero real polynomial of degree has no more than distinct real roots: a nonzero real polynomial of degree has at most distinct real roots.
Laws of finite sums and finite products and The reals form a field: coefficientwise subtraction distributes over the finite evaluation sums, so the vector evaluates to .
Proof
By [F2], choose a formal polynomial of degree at most (allowing the zero polynomial) whose evaluation equals the function for every real . At node , [F1, F2] give . Thus the formal polynomial is an interpolant.
Let be any formal polynomial of degree at most (allowing zero) with , and denote its evaluation by . Extend the actual coefficient lists of and by zeros through index (using all-zero vectors for zero polynomials), obtaining vectors and ; these describe their evaluations and , not padded formal objects. The vector defines by [F3] a formal polynomial of degree at most ; [F5] gives for every real . Since and agree at all nodes by step 1.1 and the choice of , has the distinct roots . If were nonzero, [F4] would give at most roots, a contradiction. Hence is the zero formal polynomial; by [F3], every . The canonical coefficient lists of and are therefore identical (or both objects are zero), so , and consequently as evaluation functions.
This proves that the interpolant from step 1.1 is the unique formal polynomial of degree at most satisfying the node values.
Barycentric interpolation identities
Statement
Let , , let be distinct real nodes, let , and define as in Cardinal-polynomial interpolation. For every real that is not a node, In particular, the denominator sum is nonzero and At a node , the interpolant is defined by the separate value ; the quotient is not used there.
Facts & Assumptions
Given: Distinct real nodes , real data , and a real query not equal to any node.
Cardinal-polynomial interpolation: , , , and .
Existence and uniqueness of the cardinal-polynomial interpolant: for any data on these nodes there is exactly one polynomial of degree at most interpolating them, and it is .
Cardinal interpolation functions are polynomials of the stated degrees: when and otherwise, and off the nodes.
The reals form a field and Laws of finite sums and finite products: real division by a nonzero number is defined; finite products split into consecutive factors and satisfy , including the empty-product case.
Proof
Split the product for before and after index using [F4]: it is , where and ; the omitted numerator product is . In the increasing omitted-index order of [F1], the product law [F4] gives . The second product is : multiplying it by gives the product of 's, including the empty case, so it is that product's inverse. Thus , using to cancel the nonzero factor.
By [F1], , so it has degree at most by [F2]. At each node , [F3] gives . The constant polynomial is another degree-at-most- interpolant of these data; uniqueness in [F2] gives .
Summing the identities of step 1.1 over gives by step 1.2. Since by [F3], the denominator sum equals and is nonzero by the field laws [F4].
Multiplying step 1.1 by and summing gives by [F1]. Dividing this identity by the nonzero identity in step 2.1 proves the quotient formula. At , [F2] gives , which is the separate node value stated above.
Pointwise Lagrange interpolation remainder
Statement
Let , , let , let lie in , and let with the convention of Higher derivatives and the classes and . Put and as in Cardinal-polynomial interpolation. If for a node, then . If is not a node, there is such that where , with each natural factor read as its canonical real image under The canonical natural of a field.
Facts & Assumptions
Given: A natural , a nondegenerate closed interval , distinct nodes in that interval, , and a query .
Cardinal-polynomial interpolation: , , and .
Existence and uniqueness of the cardinal-polynomial interpolant: is a polynomial of degree at most and satisfies at every node.
Higher derivatives and the classes and : means its derivatives through order exist on (one-sided at endpoints) and are continuous there.
Higher-order Rolle theorem: if , , , is continuous on , -times differentiable on , and for all , then for some .
The highest derivative of a polynomial: if has degree at most , then ; the coefficient is zero when , and it is when is monic of degree .
Sums, scalar multiples, products and quotients: , , , and when : at a limit point of a common domain, sums and scalar multiples of differentiable functions are differentiable with the sum and scalar-multiple derivative rules; the hypotheses and conclusion also apply to their restrictions to intervals.
Sums, scalar multiples, products, absolute values, maxima, minima and quotients with nonvanishing denominator of continuous functions are continuous, as are constants, the identity and every polynomial function: polynomial functions are continuous on their domain, and finite sums and scalar multiples of continuous functions are continuous.
Cardinal interpolation functions are polynomials of the stated degrees: is a polynomial function of degree at most , is monic of degree , and off the nodes.
The factorial and the falling factorial , defined by recursion in and Laws of finite sums and products in , and : the real product is the canonical real image of the nonzero natural factorial ; thus it is nonzero, and The reals form a field supplies its inverse.
Proof
If for some node, [F2] gives , so the error is zero.
Suppose is not a node. By [F8], , so set and define on . At every node , [F2] gives and [F1] gives , so ; by the choice of , also .
By [F8], is monic of degree and has degree at most , so their coefficients at degree are respectively and . Applying [F5] to these two polynomials gives and .
Sort the distinct points consisting of the nodes and as . The function is by [F3]; has degree at most and has degree by [F8]. Their iterated derivatives through order exist by [F5]. Repeated application of the sum and scalar-multiple rules [F6] shows that is -times differentiable on . Also, is continuous by [F3], the polynomial functions and are continuous by [F7], and the finite linear combination defining is continuous on by [F7]. Apply [F4] with to the zeros from step 1.2. This yields with .
Differentiate the defining identity for times at . Step 2.1 licenses these derivatives and [F6] preserves the linear combination, so . By [F9] the factorial factor is nonzero, so .
Substituting the value of into its definition in step 1.2 gives the claimed remainder formula. Since and , lies in the stated interval.
Finite barycentric interpolation evaluator
Definition
The inputs are a natural number , a floating-point system satisfying The standard relative floating-point model and unit roundoff, finite arrays and of real candidate nodes and data, and a real query . No length assumption is imposed on or ; their intended lengths are , which the procedure checks. The output is either a record with status success and a value in , or one of the statuses invalid_nodes, invalid_data, and range_failure.
Use checked operations as follows. For and , return range_failure if division has or if the exact real result is nonzero and outside the normal range . Otherwise return , using the exact-zero rule when the result is zero. Each checked operation has the tagged outcome either range_failure or a value in ; if an operation in a displayed sequence returns range_failure, stop before evaluating the next operation and return that status. Thus is called only on arguments in the domain of the stated model.
Procedure:
- If the node array has length other than , any node is not in , or the nodes are not strictly increasing, return invalid_nodes. If the data array has length other than , or any data value or the query is not in , return invalid_data.
- If for some , return success with value .
- If , return range_failure. Otherwise, for each , initialize . For each with , compute and then replace by . After this inner loop set . Any checked-operation failure returns range_failure.
- Initialize and . For each , compute , , and . Replace by and by . Any checked-operation failure returns range_failure.
- If , return range_failure. Otherwise return success with value , unless that final checked operation returns range_failure.
The exact-arithmetic target of steps 3–5 is the quotient in Barycentric interpolation identities. This finite-arithmetic procedure provides no forward-error bound, conditioning guarantee, or accuracy certificate; close or widely separated nodes can cause a range failure or an inaccurate successful value.
The finite barycentric evaluator terminates with an explicit status
Statement
For every input tuple of Finite barycentric interpolation evaluator, the procedure terminates and returns one of its declared statuses. If it returns success, its value is an element of the supplied floating-point set . The statement asserts no accuracy or forward-error bound.
Facts & Assumptions
Given: The finite arrays, query, and floating-point system supplied to the algorithm.
Finite barycentric interpolation evaluator: the procedure loops over the finite index sets , each checked operation returns either an in-range rounded value or range_failure, and each detected failure branch returns immediately.
Proof
The procedure first checks the length of and, if it is correct, scans its node candidates for membership in and strict order; any failure returns invalid_nodes. If those checks pass, it checks the length of and, if it is correct, scans its data values and the query for membership; any failure returns invalid_data. These checks are finite. Otherwise the exact-node branch returns a data value in . For an off-node query, the procedure next checks whether : if not, it returns range_failure before initializing any arithmetic with ; if so, it proceeds to weight construction.
After the guard in step 1.1, , so each initial and each reciprocal numerator is in the checked-operation domain. Every successful checked operation returns an element of , preserving that domain for the next operation. Weight construction visits at most node pairs and performs finitely many such operations; any failure returns range_failure immediately, so this stage terminates.
If weight construction completes, the evaluation loop starts with accumulators and visits at most terms. Every checked operation either returns a value in or exits with range_failure. If the loop completes, a zero denominator returns range_failure; otherwise the checked final division either returns range_failure or returns success with a value in .
These cases exhaust the procedure's branches and every loop is finite, so every input terminates with a declared status.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Mark Embree, Lecture Notes on Numerical Analysis, lecture 1
- Jean-Paul Berrut and Lloyd N. Trefethen, Barycentric Lagrange Interpolation
- Mark Embree, Lecture Notes on Numerical Analysis, Math 5466
- Mark Embree, Lecture Notes on Numerical Analysis, lecture 3
- Mark Embree, Lecture Notes on Numerical Analysis, lectures 1 and 3
- Mark Embree, Lecture Notes on Numerical Analysis, uniformly spaced nodes example