[hackeroid] B1:1 Gorner's scheme

>>>

The sum of 5x^2+12x+4 kind is called polynom of one variable. ("^" means raising into power. This notation is taken from BASIC). Gorner's scheme fir polynom calculation is:

12x^4+56x^3+3x^2+x+45=(((12x+56)x+3)x+1)x+45
34x^4+3x^2=(((34x+0)x+3)x+0)x+0=(34x^2+3)x^2

In BASIC:

P=A(N):FOR I=N-1 TO 0 STEP -1:P=P*X+A(I):NEXT

Meditate.

<<<

<<<B1:1 EOF>>>



E-mail: hscool@netclub.ru
Hosted by uCoz