Horner's rule for polynomial evaluation: Difference between revisions

(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) lcoeffList</lang>
 
=={{header|Tcl}}==
Anonymous user