Anonymous user
Horner's rule for polynomial evaluation: Difference between revisions
Horner's rule for polynomial evaluation (view source)
Revision as of 15:16, 4 April 2014
, 10 years agoUpdated last D entry
(Updated last D entry) |
|||
Line 282:
auto horner(T, U)(in T[] p, in U x) pure nothrow {
return reduce!((a, b) => a * x + b)
}
|