boundlab.utils.Polynomial#
- class boundlab.utils.Polynomial[source]#
Bases:
objectDense univariate polynomial \(P(x) = \sum_k c_k x^k\).
coeffsruns from the constant term up. Coefficients may be tensors, giving an independent polynomial per element. Besides ring arithmetic it supports composition (chain()), argument substitution (apply_add(),apply_ax()), differentiation, and sound interval evaluation (ibp()).Methods
Polynomial representing x^n.
P(x + shift)
P(a x)
P(x / a) * a^n
P(Q(x))
Sound range of \(P\) over \([c - hw,\, c + hw]\).
- ibp(c, hw)[source]#
Sound range of \(P\) over \([c - hw,\, c + hw]\).
Substituting \(x = c + hw\,u\) reduces to bounding over \(u \in [-1, 1]\), where each monomial is elementary: odd powers of
urange over \(\pm|a_k|\) and even powers over \([\min(a_k, 0), \max(a_k, 0)]\). Summing those per-monomial ranges is sound (though not tight — monomial correlations are ignored).