Dense exact bivariate polynomials #
The outer list records increasing powers of x; each inner list records increasing powers of
y. Transparent list arithmetic lets the kernel normalize small polynomial certificates.
A dense univariate polynomial with coefficients in increasing degree order.
Equations
Instances For
Add coefficient lists, padding the shorter list by zeros.
Equations
- LeanPool.Besicovitch.DenseUnivariate.add [] x✝ = x✝
- x✝.add [] = x✝
- LeanPool.Besicovitch.DenseUnivariate.add (a :: p) (b :: q) = (a + b) :: LeanPool.Besicovitch.DenseUnivariate.add p q
Instances For
Multiply every coefficient by a rational scalar.
Equations
- LeanPool.Besicovitch.DenseUnivariate.scale a p = List.map (fun (x : ℚ) => a * x) p
Instances For
Negate every coefficient.
Instances For
Exact polynomial multiplication by coefficient convolution.
Equations
Instances For
Evaluate a dense polynomial over the reals by Horner's rule.
Equations
Instances For
The sum of the absolute values of the coefficients.
Equations
- p.coefficientL1Norm = (List.map abs p).sum
Instances For
Formal differentiation computes the derivative of dense evaluation.
The coefficient norm bounds evaluation on the unit interval.
A dense bivariate polynomial, with the outer index giving the first-variable degree.
Instances For
Add two dense bivariate polynomials.
Equations
- LeanPool.Besicovitch.DenseBivariatePolynomial.add [] x✝ = x✝
- x✝.add [] = x✝
- LeanPool.Besicovitch.DenseBivariatePolynomial.add (a :: p) (b :: q) = a.add b :: LeanPool.Besicovitch.DenseBivariatePolynomial.add p q
Instances For
Multiply by a rational scalar.
Equations
Instances For
Negate a dense bivariate polynomial.
Equations
Instances For
Multiply each outer coefficient by a univariate polynomial.
Equations
Instances For
Exact bivariate polynomial multiplication.
Equations
Instances For
A constant bivariate polynomial.
Instances For
The first variable.
Instances For
The second variable.
Instances For
Natural powers of a dense bivariate polynomial.
Equations
Instances For
Evaluate a dense bivariate polynomial by nested Horner rules.
Equations
- LeanPool.Besicovitch.DenseBivariatePolynomial.eval [] x✝¹ x✝ = 0
- LeanPool.Besicovitch.DenseBivariatePolynomial.eval (a :: p) x✝¹ x✝ = a.eval x✝ + x✝¹ * LeanPool.Besicovitch.DenseBivariatePolynomial.eval p x✝¹ x✝
Instances For
The sum of the absolute values of all coefficients.
Equations
Instances For
Formal differentiation with respect to the first variable.
Equations
Instances For
Formal differentiation with respect to the second variable.
Equations
Instances For
derivFirst computes the derivative along a first-coordinate line.
derivSecond computes the derivative along a second-coordinate line.
The coefficient norm bounds evaluation on the real unit square.