You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Primer - polynom<br />
» a = polynom([1 2 3])<br />
a =<br />
x^2 + 2*x + 3<br />
» r = roots(a)<br />
r =<br />
-1.0000 + 1.4142i<br />
-1.0000 - 1.4142i<br />
» y = a(0:0.5:2) % y = polyval(a, 0:0.5:2)<br />
y =<br />
3.0000 4.2500 6.0000 8.2500 11.0000<br />
» b = polynom([2 1])<br />
b =<br />
2*x + 1<br />
» c = a*b + 2*b - 4<br />
c =<br />
2*x^3 + 5*x^2 + 12*x + 1<br />
» d = diff(c)<br />
d =<br />
6*x^2 + 10*x + 12<br />
» plot(c) -50<br />
-4 -2 0 2 4<br />
150<br />
100<br />
50<br />
0<br />
2*x 3 + 5*x 2 + 12*x + 1