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.

1.9 Procedure Intrinseche 81<br />

WRITE(*,*) " Kind: ", KIND(r1)<br />

WRITE(*,*) " Bit significativi: ", DIGITS(r1)<br />

WRITE(*,*) " Max esponente: ", MAXEXPONENT(r1)<br />

WRITE(*,*) " Min esponente: ", MINEXPONENT(r1)<br />

WRITE(*,*) " Cifre significative:", PRECISION(r1)<br />

WRITE(*,*) " Base: ", RADIX(r1)<br />

WRITE(*,*) " Range di esponenti: ", RANGE(r1)<br />

WRITE(*,*) " Epsilon: ", EPSILON(r1)<br />

WRITE(*,*) " Spaziatura: ", SPACING(r1)<br />

WRITE(*,*) " Minimo valore: ", TINY(r1)<br />

WRITE(*,*) " Massimo valore: ", HUGE(r1)<br />

WRITE(*,*)<br />

WRITE(*,*) " Tipo REAL in doppia precisione "<br />

WRITE(*,*) " Kind: ", KIND(r2)<br />

WRITE(*,*) " Bit significativi: ", DIGITS(r2)<br />

WRITE(*,*) " Max esponente: ", MAXEXPONENT(r2)<br />

WRITE(*,*) " Min esponente: ", MINEXPONENT(r2)<br />

WRITE(*,*) " Cifre significative:", PRECISION(r2)<br />

WRITE(*,*) " Base: ", RADIX(r2)<br />

WRITE(*,*) " Range di esponenti: ", RANGE(r2)<br />

WRITE(*,*) " Epsilon: ", EPSILON(r2)<br />

WRITE(*,*) " Spaziatura: ", SPACING(r2)<br />

WRITE(*,*) " Minimo valore: ", TINY(r2)<br />

WRITE(*,*) " Massimo valore: ", HUGE(r2)<br />

STOP<br />

END PROGRAM parametri<br />

Compilato con l’Essential Lahey <strong>Fortran</strong> <strong>90</strong> Compiler (ELF<strong>90</strong>) 4.00b ed eseguito su un PC con<br />

processore Intel Pentium III, questo programma fornisce il seguente output:<br />

Tipo INTEGER di default<br />

Kind: 4<br />

No di Cifre: 31<br />

Base: 2<br />

Range di esponenti: 9<br />

Massimo valore: 2147483647<br />

N. di bit occupati: 32<br />

Tipo REAL in singola precisione<br />

Kind: 4<br />

Bit significativi: 24<br />

Max esponente: 128<br />

Min esponente: -125<br />

Cifre significative: 6

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

Saved successfully!

Ooh no, something went wrong!