Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
horners.hpp File Reference
#include <iostream>
#include <vector>
#include <universal/number/qd/qd_fwd.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal

Functions

qd sw::universal::polyeval (const std::vector< qd > &coefficients, int n, const qd &x)
 polyeval evaluates a given n-th degree polynomial at x using Horner's rule.
qd sw::universal::polyroot (const std::vector< qd > &c, const qd &x0, int max_iter, double threshold=1e-32)
 polyroot finds a root close to the initial guess x0.