|
inlineconstexpr |
fma[pedantic] instead of fma is used in internal computations.Parameters
x: evaluation point floating value arguments.ci...: floating values polynom coefficients in increasing power order, Note that the values of the ci are not necessarily floating but the non floating ones are to be scalartci: eve:coefficients is a specialization of tuple of floating values used to avoid possible ambiguitiesc: Conditional expression masking the operation.m: Logical value masking the operation.Return value
If \((c_i)_{0\le i\le n-1}\) denotes the coefficients of the polynomial by increasing power order, the reverse Horner scheme evaluates the polynom \(p\) at \(x\) using the following formula:
\(\qquad\qquad\displaystyle p(x) = (((c_{n-1}x+c_{n-2})x+ ... )x + c_0)\)
x is returned.fma[pedantic] instead of fma is used in internal computations. This is intended to insure more accurate computations where needed. This has no cost (and is automatically done) if the system has hard wired fma but is very expansive if it is not the case.