02.05.2014 Views

Patrick Corde & Anne Fouilloux

Patrick Corde & Anne Fouilloux

Patrick Corde & Anne Fouilloux

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.

Arguments de type procédure 164<br />

function integrale( borne_i, borne_s, pas, f )<br />

implicit none<br />

double precision borne_i, borne_s<br />

double precision integrale<br />

integer<br />

pas, i<br />

double precision h, f<br />

h = (borne_s - borne_i)/pas<br />

integrale = 0.<br />

do i=0, pas-1<br />

integrale = integrale + h*f(borne_i+i*h)<br />

end do<br />

end function integrale<br />

function carre( x )<br />

implicit none<br />

double precision x<br />

double precision carre<br />

carre = x*x<br />

end function carre<br />

INSTITUT DU DÉVELOPPEMENT<br />

ET DES RESSOURCES<br />

EN INFORMATIQUE SCIENTIFIQUE<br />

Cours langage Fortran – 27 janvier 2006<br />

<strong>Patrick</strong> <strong>Corde</strong> et <strong>Anne</strong> <strong>Fouilloux</strong>

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

Saved successfully!

Ooh no, something went wrong!