Anonymous user
Horner's rule for polynomial evaluation: Difference between revisions
Horner's rule for polynomial evaluation (view source)
Revision as of 21:38, 19 June 2011
, 12 years ago→{{header|Standard ML}}
(Added Standard ML implementation) |
|||
Line 852:
=={{header|Standard ML}}==
<lang sml>(* Assuming real type for coefficients and x *)
fun horner coeffList x = foldr (fn (a, b) => a + b * x) (0.0)
=={{header|Tcl}}==
|