X - techmat.vgtu.lt
X - techmat.vgtu.lt
X - techmat.vgtu.lt
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Algoritmo aritmetinių veiksmų skaičius2 algoritmas.f := a0x i := cciklas su visais i nuo 1 iki nf := f + a i ∙ x ix i := x i ∙cciklo pagal i pabaigaKiek atliekame sudėties ir daugybos veiksmų pagal šį algoritmą?Atliekame sudėties ir daugybos veiksmų.3 Hornerio algoritmas.nn1n1 x a1x a0 ((( anx an1)x an2)x a1)f ( x) a x ax ann2nf := a nciklas su visais i nuo n iki 1 (su žingsniu -1)f := f ∙c + a i-1ciklo pagal i pabaigaKiek atliekame sudėties ir daugybos veiksmų pagal šį algoritmą?Atliekame n sudėties ir n daugybos veiksmų.0