25.06.2013 Views

Il Linguaggio Fortran 90/95

Il Linguaggio Fortran 90/95

Il Linguaggio Fortran 90/95

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.

5.18 Visibilità 311<br />

FUNCTION df(x)<br />

! Derivata della funzione esterna<br />

IMPLICIT NONE<br />

REAL :: df<br />

REAL,INTENT(IN) :: x<br />

df = 1.0+exp(x)<br />

END FUNCTION df<br />

Per completezza si riporta anche un esempio di impiego del programma:<br />

C:\MYPROG>test_root<br />

Inserisci gli estremi sinistro e destro dell’intervallo:<br />

0.5 1.0<br />

Metodo di Newton - La radice di f vale: -0.5671433<br />

Metodo delle secanti - La radice di f vale: -0.5671433

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

Saved successfully!

Ooh no, something went wrong!