24.10.2014 Views

Approssimazione dell'esponenziale

Approssimazione dell'esponenziale

Approssimazione dell'esponenziale

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

f10=figure; figure(f10)<br />

plot(XCAMPIO,Nserie)<br />

xlabel(’Valore di x’), ylabel(’Valore di ultimo n usato’)<br />

title(’<strong>Approssimazione</strong> exp(x) con funzione esponenziale taylor 2’)<br />

print -depsc2 exp_10<br />

60<br />

<strong>Approssimazione</strong> exp(x) con funzione esponenziale taylor 2<br />

50<br />

Valore di ultimo n usato<br />

40<br />

30<br />

20<br />

10<br />

0<br />

−10 −8 −6 −4 −2 0 2 4 6 8 10<br />

Valore di x<br />

Figura 10: exp 10<br />

f11=figure; figure(f11)<br />

[haxes,hlinea1,hlinea2]=plotyy(XCAMPIO,ERRORE_RELATIVO_1,XCAMPIO,ERRORE_RELATIVO_1,<br />

’semilogy’,’plot’); axes(haxes(1)); ylabel(’Scala logaritmica’); axes(haxes(2));<br />

ylabel(’Scala lineare’); xlabel(’Valore di x’)<br />

title(’<strong>Approssimazione</strong> exp(x) con funzione esponenziale taylor 2’)<br />

legend(’logaritmo valore approssimato taylor 2’,’valore approssimato taylor 2’)<br />

print -depsc2 exp_11<br />

10 −6<br />

10 −7<br />

<strong>Approssimazione</strong> exp(x) con funzione esponenziale taylor 2<br />

logaritmo valore approssimato taylor 2<br />

valore approssimato taylor 2<br />

x 10 −8<br />

2<br />

1.8<br />

10 −8<br />

1.6<br />

10 −9<br />

1.4<br />

Scala logaritmica<br />

10 −10<br />

10 −11<br />

10 −12<br />

1.2<br />

1<br />

0.8<br />

Scala lineare<br />

10 −13<br />

0.6<br />

10 −14<br />

0.4<br />

10 −15<br />

−10 −8 −6 −4 −2 0 2 4 6 8<br />

0.2<br />

10 0<br />

Valore di x<br />

Figura 11: exp 11<br />

7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!