Talk:Horner's rule for polynomial evaluation: Difference between revisions
Content added Content deleted
(→J language and p.: Does p. use Horner's?) |
(→C++ solution: Error: new section) |
||
Line 6: | Line 6: | ||
==J language and p.== |
==J language and p.== |
||
Just wondered, does p. use Horner's rule? --[[User:Paddy3118|Paddy3118]] 03:11, 1 April 2010 (UTC) |
Just wondered, does p. use Horner's rule? --[[User:Paddy3118|Paddy3118]] 03:11, 1 April 2010 (UTC) |
||
== C++ solution: Error == |
|||
I think there's a bug in the C++ solution (the original one, not the more idiomatic one I just added): It seems that it decrements an iterator to the first element of the vector, which is undefined behaviour (and may trigger a run time error on certain implementations). --[[User:Ce|Ce]] 12:42, 12 August 2010 (UTC) |