24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

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.

<strong>Language</strong> <strong>Reference</strong><br />

12.3.24 Square Root<br />

Definition:<br />

Name:<br />

a**1/2<br />

Usage:<br />

SQRT (generic) R ←SQRT(R), D ←SQRT(D), C ←SQRT(C), Z ←SQRT(Z) †<br />

SQRT<br />

DSQRT<br />

CSQRT<br />

R ←SQRT(R)<br />

D ←DSQRT(D)<br />

C ←CSQRT(C)<br />

CDSQRT Z ←CDSQRT(Z) †<br />

Notes:<br />

The argument to SQRT must be >= 0. The result of CSQRT and CDSQRT is the<br />

principal value with the real part >= 0. When the real part of the result is 0, the<br />

imaginary part is >= 0.<br />

† is an extension to <strong>FORTRAN</strong> <strong>77</strong>.<br />

12.3.25 Exponential<br />

Definition:<br />

Name:<br />

e**a<br />

Usage:<br />

EXP (generic) R ←EXP(R), D ←EXP(D), C ←EXP(C), Z ←EXP(Z) †<br />

EXP<br />

DEXP<br />

CEXP<br />

R ←EXP(R)<br />

D ←DEXP(D)<br />

C ←CEXP(C)<br />

CDEXP Z ←CDEXP(Z) †<br />

Notes:<br />

The result of a complex function is the principal value.<br />

† is an extension to <strong>FORTRAN</strong> <strong>77</strong>.<br />

256 Intrinsic Functions

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

Saved successfully!

Ooh no, something went wrong!