14.03.2014 Views

Using JMP - SAS

Using JMP - SAS

Using JMP - SAS

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.

402 Formula Functions Reference Appendix B<br />

Character Functions<br />

Sine, Cosine, Tangent<br />

The Sine and Cosine functions calculate the sine and cosine of their respective arguments given in radians.<br />

For example, the expression Sine(0) evaluates as 0, and Cosine(0) evaluates as 1. The tangent function<br />

calculates the tangent of an argument given in radians. The expression Tan(.25) evaluates as 0.255342.<br />

ArcSine, ArcCosine, ArcTangent<br />

The ArcSine and ArcCosine functions return the inverse sine and inverse cosine of their respective<br />

arguments. The returned value is measured in radians. For example, both expressions ArcSine(1) and<br />

ArcCosine(0) evaluate as 1.57080. The ArcTangent function returns the inverse tangent of its argument.<br />

The returned value is measured in radians. The expression ArcTangent(0.5) evaluates as 0.46364.<br />

SinH, CosH, TanH<br />

The SinH and CosH functions return the hyperbolic sine and hyperbolic cosine of their respective<br />

arguments. The expression SinH(1) evaluates as 1.175201, and CosH(0) evaluates as 1.0. The TanH function<br />

returns the hyperbolic tangent of its argument. The expression TanH(1) evaluates as 0.761594.<br />

ArcSinH, ArcCosH, ArcTanH<br />

The ArcSinH and ArcCosH functions return the inverse hyperbolic sine and inverse hyperbolic cosine of<br />

their respective arguments. The expression ArcSinH(1) evaluates as 0.881374, and ArcCosH(1) is 0. The<br />

ArcTanH function returns the inverse hyperbolic tangent of its argument. The expression ArcTanH(0.5)<br />

evaluates as 0.549306.<br />

Character Functions<br />

You can create a formula that accepts character arguments or returns character strings and converts the data<br />

type of a value from numeric to character, or character to numeric. When you create these formulas, note<br />

that:<br />

• Character functions can result in either character or numeric data. If you calculate a data type different<br />

from the one specified, the data type of the computed column is automatically changed to match the<br />

result.<br />

• Arguments that are literal character strings must be enclosed in quotation marks.<br />

See the Scripting Guide for details about syntax.<br />

Char<br />

Produces a character string that corresponds to the digits in its numeric argument. For example, Char(1.123)<br />

evaluates as 1.123. See the Scripting Guide, for details.

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

Saved successfully!

Ooh no, something went wrong!