24.05.2014 Views

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

XL Fortran Enterprise Edition for AIX : User's Guide - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 34. MASS Vector Library Functions<br />

Double-precision<br />

function<br />

Single-precision<br />

function<br />

Arguments<br />

Description<br />

vacos vsacos (y,x,n) Sets y(i) to the arccosine of x(i),<br />

<strong>for</strong> i=1,..,n<br />

vasin vsasin (y,x,n) Sets y(i) to the arcsine of x(i), <strong>for</strong><br />

i=1,..,n<br />

vatan2 vsatan2 (z,x,y,n) Sets z(i) to the arctangent of<br />

x(i)/y(i), <strong>for</strong> i=1,..,n<br />

vcos vscos (y,x,n) Sets y(i) to the cosine of x(i), <strong>for</strong><br />

i=1,..,n<br />

vcosh vscosh (y,x,n) Sets y(i) to the hyperbolic cosine<br />

of x(i), <strong>for</strong> i=1,..,n<br />

vcosisin vscosisin (y,x,n) Sets the real part of y(i) to the<br />

cosine of x(i) and the imaginary<br />

part of y(i) to the sine of x(i), <strong>for</strong><br />

i=1,..,n<br />

vdint (y,x,n) Sets y(i) to the integer truncation<br />

of x(i), <strong>for</strong> i=1,..,n<br />

vdiv vsdiv (z,x,y,n) Sets z(i) to x(i)/y(i), <strong>for</strong> i=1,..,n<br />

vdnint (y,x,n) Sets y(i) to the nearest integer to<br />

x(i), <strong>for</strong> i=1,..,n<br />

vexp vsexp (y,x,n) Sets y(i) to the exponential<br />

function of x(i), <strong>for</strong> i=1,..,n<br />

vexpm1 vsexpm1 (y,x,n) Sets y(i) to (the exponential<br />

function of x(i))-1, <strong>for</strong> i=1,..,n<br />

vlog vslog (y,x,n) Sets y(i) to the natural logarithm<br />

of x(i), <strong>for</strong> i=1,..,n<br />

vlog10 vslog10 (y,x,n) Sets y(i) to the base-10 logarithm<br />

of x(i), <strong>for</strong> i=1,..,n<br />

vlog1p vslog1p (y,x,n) Sets y(i) to the natural logarithm<br />

of (x(i)+1), <strong>for</strong> i=1,..,n<br />

vpow vspow (z,x,y,n) Sets z(i) to x(i) raised to the<br />

power y(i), <strong>for</strong> i=1,..,n<br />

vrec vsrec (y,x,n) Sets y(i) to the reciprocal of x(i),<br />

<strong>for</strong> i=1,..,n<br />

vrsqrt vsrsqrt (y,x,n) Sets y(i) to the reciprocal of the<br />

square root of x(i), <strong>for</strong> i=1,..,n<br />

vsin vssin (y,x,n) Sets y(i) to the sine of x(i), <strong>for</strong><br />

i=1,..,n<br />

vsincos vssincos (y,z,x,n) Sets y(i) to the sine of x(i) and<br />

z(i) to the cosine of x(i), <strong>for</strong><br />

i=1,..,n<br />

vsinh vssinh (y,x,n) Sets y(i) to the hyperbolic sine of<br />

x(i), <strong>for</strong> i=1,..,n<br />

vsqrt vssqrt (y,x,n) Sets y(i) to the square root of<br />

x(i), <strong>for</strong> i=1,..,n<br />

vtan vstan (y,x,n) Sets y(i) to the tangent of x(i),<br />

<strong>for</strong> i=1,..,n<br />

Appendix C. Using the Mathematical Acceleration Subsystem (MASS) 421

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

Saved successfully!

Ooh no, something went wrong!