schemat hornera
: 27 sie 2010, o 15:54
Horner = Function[{poly, xo}, {lista = Reverse[ConfitionList[poly]],
lista2 = {}}, lista2 = AppendTo[lista2, lista[[1]]],
For[i = 1, i <= Length[lista] - 1,
i++ AppendTo[lista2, xo *lista2[] + lista[[i + 1]]],
Print["lista wspol", lista2]]]
co jest nie tak w tym programie?
lista2 = {}}, lista2 = AppendTo[lista2, lista[[1]]],
For[i = 1, i <= Length[lista] - 1,
i++ AppendTo[lista2, xo *lista2[] + lista[[i + 1]]],
Print["lista wspol", lista2]]]
co jest nie tak w tym programie?