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.

Opérateurs arithmétiques 55<br />

4.1.2 – Les expressions<br />

Règle d’usage<br />

Interprétation<br />

o 1 + o 2 ajoute o 2 à o 1<br />

+ o 1 égal à o 1<br />

o 1 - o 2 soustrait o 2 à o 1<br />

- o 1 inverse le signe de o 1<br />

o 1 * o 2 multiplie o 1 par o 2<br />

o 1 / o 2 o 1 divisé par o 2<br />

o 1 **o 2 élève o 1 à la puissance o 2<br />

Les opérandes o 1 et o 2 peuvent être :<br />

☞ une constante numérique,<br />

☞ une variable numérique, précédée ou non d’un opérateur<br />

unaire (+ ou -),<br />

☞ une expression arithmétique entre parenthèses.<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!