Horner's rule for polynomial evaluation: Difference between revisions

Content deleted Content added
CalmoSoft (talk | contribs)
No edit summary
CalmoSoft (talk | contribs)
No edit summary
Line 1,539:
=={{header|Ring}}==
<lang ring>
coefficients = [-19, 7, -4, 6]
see "x = 3" + nl +
see "degree = 3" + nl +
see "equation = 6*x^3-4*x^2+7*x-19" + nl +
see "result = " + horner(coefficients, 3) + nl
func horner coeffs, x