|
Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
|
#include <cmath>#include <cstdio>#include <limits>Namespaces | |
| namespace | sw |
| required std libraries | |
| namespace | sw::math |
| namespace | sw::math::polynomial |
Functions | |
| template<typename Vector, typename Scalar> | |
| Scalar | sw::math::polynomial::polyeval (const Vector &coefficients, int n, const Scalar &x) |
| polyeval evaluates a given n-th degree polynomial at x using Horner's rule. | |
| template<typename Vector, typename Scalar> | |
| Scalar | sw::math::polynomial::polyroot (const Vector &c, const Scalar &x0, int max_iter, double threshold=1e-16) |
| polyroot finds a root close to the initial guess x0. | |